Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add choice flags for init command #1183

Closed
ieedan opened this issue Jul 13, 2024 · 0 comments · Fixed by #1186
Closed

Add choice flags for init command #1183

ieedan opened this issue Jul 13, 2024 · 0 comments · Fixed by #1186
Labels
type: feature Introduction of new functionality to the application

Comments

@ieedan
Copy link
Contributor

ieedan commented Jul 13, 2024

Describe the feature

Add flags for init to allow selection of style, base color, and -y flag for prompts with sensible defaults.

Why?: Nice to have if you are building automation tools such as templates that integrate the library

Proposed flags:

Usage: shadcn-svelte init [options]
 
initialize your project and install dependencies
 
Options:
  -c, --cwd <cwd>    the working directory. (default: the current directory)
  ---
  --ts                     use typescript
  -s, --style              the style ("default", "new york")
  --bc, --base-color       the base color for the components (colors...)
  --gc, ,--global-css      the global css file location
  --tc, --tailwind-config  the tailwind config location
  --ca, --component-alias  import alias for components
  --ua, --utils-alias      import alias for utils 
  ---
  -h, --help               display help for command

Happy to open a PR for this if its something you are open to!

@ieedan ieedan added the type: feature Introduction of new functionality to the application label Jul 13, 2024
@ieedan ieedan changed the title Add choice for init command Add choice flags for init command Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant