Skip to content

Commit

Permalink
fix: command options
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetinate committed May 8, 2024
1 parent 1de754d commit a1889dc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,27 @@ program
.command('create')
.argument('<name>', 'Resource name')
.option('--preset [preset]', 'Preset name')
.option('--framework <frameworkName>', 'Framework name for default preset: vue or react')
.option('--type <resourceType>', 'Resource type: "function" | "page" | "component"')
.option('--vue-version [vueVersion]', 'Vue version: "2" | "3" (default: 3))', '3')
.option('--framework <frameworkName>', 'Framework name for default preset: vue or react')
.option(
'--cssFramework [cssFramework]',
'Style approach: "css_modules" | "tailwind_inline" | "tailwind_file" | "css_vanilla" | "scss" (default: no_style)',
'no_style'
)
.option('--test-framework [testFrameworkName]', 'Test framework: jest or vitest (default: jest)')
.option(
'--path <resourcePath>',
'Path to resource, use dot (".") to current dir where command is executed'
)
.option(
'--testPath [testPath]',
'--test-path [testPath]',
'Path to test, use dot (".") to current dir where command is executed, if ommited, and --spec is present, will use the same path to resource'
)
.option(
'--storyPath [storyPath]',
'--story-path [storyPath]',
'Path to story, use dot (".") to current dir where command is executed, if ommited, and --spec is present, will use the same path to resource'
)
.option(
'--cssFramework [cssFramework]',
'Style approach: "css_modules" | "tailwind_inline" | "tailwind_file" | "css_vanilla" | "scss" (default: no_style)',
'no_style'
)
.option('--test-framework [testFrameworkName]', 'Test framework: jest or vitest (default: jest)')
.option('--typescript', 'With TypeScript (default: false)')
.option('--testing-library', 'With Testing Library (default: false)')
.option('--test', 'Add test file (default: false)')
Expand Down

0 comments on commit a1889dc

Please sign in to comment.