Skip to content

Commit

Permalink
Feat(create robo) no credential feature (#249)
Browse files Browse the repository at this point in the history
* index.ts

Added -nc 'no credentials' feature to skip asking for credential, I also modified -p options so if the first option is '' it will skip asking for plugins. this update aims at easier testing as well as faster creation of templates.

* update

* chore(index.ts): negated if to replace empty scope

* oopsy it was not workey

* changeset

* fix(index.ts)

Condition to ask for no creds was broken
  • Loading branch information
Nazeofel authored Jun 3, 2024
1 parent a032d97 commit d48323e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-spoons-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-robo': patch
---

fix(create-robo): no creds flag.
5 changes: 5 additions & 0 deletions .changeset/kind-goats-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-robo': patch
---

feat(create-robo): `--no-creds` option
4 changes: 2 additions & 2 deletions packages/create-robo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface CommandOptions {
verbose?: boolean
roboVersion?: string
update?: boolean
noCreds?: boolean
creds?: boolean
}

new Command('create-robo <projectName>')
Expand All @@ -41,7 +41,7 @@ new Command('create-robo <projectName>')
.option('-v --verbose', 'print more information for debugging')
.option('-rv, --robo-version <value>', 'specify a Robo.js version to use')
.option('-k, --kit <value>', 'choose a kit to start off with your Robo')
.option('-nc, --no-creds', 'Skips asking for the credentials')
.option('-nc, --no-creds <boolean>', 'Skips asking for the credentials', false)
.action(async (options: CommandOptions, { args }) => {
logger({
level: options.verbose ? 'debug' : 'info'
Expand Down

0 comments on commit d48323e

Please sign in to comment.