Expose new option in techdocs cli generate command
The re-assignment of container user on macOS/Linux is troublesome when running on rootless GitHub runners; adding a way to bypass this for generation. This should be a non-breaking change and just adds functionality. Signed-off-by: Kamil Zainal <gh@akza.dev>
This commit is contained in:
@@ -114,6 +114,7 @@ export default async function generate(opts: OptionValues) {
|
||||
etag: opts.etag,
|
||||
logStream: getLogStream(logger),
|
||||
siteOptions: { name: opts.siteName },
|
||||
runAsDefaultUser: opts.runAsDefaultUser
|
||||
});
|
||||
|
||||
if (configIsTemporary) {
|
||||
|
||||
@@ -75,6 +75,11 @@ export function registerCommands(program: Command) {
|
||||
'Plugins which should be added automatically to the mkdocs.yaml file',
|
||||
[],
|
||||
)
|
||||
.option(
|
||||
'--runAsDefaultUser',
|
||||
'Bypass setting the container user as the same user and group id as host for Linux and MacOS',
|
||||
false
|
||||
)
|
||||
.alias('build')
|
||||
.action(lazy(() => import('./generate/generate').then(m => m.default)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user