Skip to content

Commit

Permalink
Fix the description and rename the project-folder option of generate-…
Browse files Browse the repository at this point in the history
…docs
  • Loading branch information
hellodword committed Mar 29, 2024
1 parent 1da368b commit 1910eb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/spec-node/featuresCLI/generateDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getPackageConfig } from '../../spec-utils/product';
export function featuresGenerateDocsOptions(y: Argv) {
return y
.options({
'project-folder': { type: 'string', alias: 'p', default: '.', description: 'Path to folder containing \'src\' and \'test\' sub-folders. This is likely the git root of the project.' },
'src-folder': { type: 'string', alias: 'p', default: '.', description: 'Path to folder containing containing numerous subdirectories, each of which contains a devcontainer-feature.json.' },
'registry': { type: 'string', alias: 'r', default: 'ghcr.io', description: 'Name of the OCI registry.' },
'namespace': { type: 'string', alias: 'n', require: true, description: `Unique indentifier for the collection of features. Example: <owner>/<repo>` },
'github-owner': { type: 'string', default: '', description: `GitHub owner for docs.` },
Expand All @@ -28,7 +28,7 @@ export function featuresGenerateDocsHandler(args: FeaturesGenerateDocsArgs) {
}

export async function featuresGenerateDocs({
'project-folder': collectionFolder,
'src-folder': collectionFolder,
'registry': registry,
'namespace': namespace,
'github-owner': gitHubOwner,
Expand Down
4 changes: 2 additions & 2 deletions src/spec-node/templatesCLI/generateDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getPackageConfig } from '../../spec-utils/product';
export function templatesGenerateDocsOptions(y: Argv) {
return y
.options({
'project-folder': { type: 'string', alias: 'p', default: '.', description: 'Path to folder containing \'src\' and \'test\' sub-folders. This is likely the git root of the project.' },
'src-folder': { type: 'string', alias: 'p', default: '.', description: 'Path to folder containing containing numerous subdirectories, each of which contains a devcontainer-template.json.' },
'github-owner': { type: 'string', default: '', description: `GitHub owner for docs.` },
'github-repo': { type: 'string', default: '', description: `GitHub repo for docs.` },
'log-level': { choices: ['info' as 'info', 'debug' as 'debug', 'trace' as 'trace'], default: 'info' as 'info', description: 'Log level.' }
Expand All @@ -26,7 +26,7 @@ export function templatesGenerateDocsHandler(args: TemplatesGenerateDocsArgs) {
}

export async function templatesGenerateDocs({
'project-folder': collectionFolder,
'src-folder': collectionFolder,
'github-owner': gitHubOwner,
'github-repo': gitHubRepo,
'log-level': inputLogLevel,
Expand Down

0 comments on commit 1910eb2

Please sign in to comment.