Skip to content

Commit

Permalink
fix: add MIX_PROJECT as default for project flag in all intents comma…
Browse files Browse the repository at this point in the history
…nds (#33)
  • Loading branch information
grof committed Aug 8, 2022
1 parent 2a95eec commit 96e322e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/commands/intents/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Use this command to create a new intent in a project.`

static flags = {
name: MixFlags.intentNameFlag,
project: MixFlags.projectFlag,
project: MixFlags.projectWithDefaultFlag,
// output flags
json: MixFlags.jsonFlag,
yaml: MixFlags.yamlFlag,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/intents/destroy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Use this command to permanently delete an intent from a project.`
static flags = {
confirm: MixFlags.confirmFlag,
intent: MixFlags.intentFlag,
project: MixFlags.projectFlag,
project: MixFlags.projectWithDefaultFlag,
// output flags
json: MixFlags.jsonFlag,
yaml: MixFlags.yamlFlag,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/intents/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Use this command to get details about a particular intent in a project.`

static flags = {
intent: MixFlags.intentFlag,
project: MixFlags.projectFlag,
project: MixFlags.projectWithDefaultFlag,
// output flags
json: MixFlags.jsonFlag,
...MixFlags.tableFlags({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/intents/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Use this command to list all intents available in a specific project.`
]

static flags = {
project: MixFlags.projectFlag,
project: MixFlags.projectWithDefaultFlag,
// output flags
json: MixFlags.jsonFlag,
...MixFlags.tableFlags({except: ['extended']}),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/intents/rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Use this command to rename an intent in a project.`
static flags = {
intent: MixFlags.intentFlag,
name: MixFlags.intentNameFlag,
project: MixFlags.projectFlag,
project: MixFlags.projectWithDefaultFlag,
// output flags
json: MixFlags.jsonFlag,
yaml: MixFlags.yamlFlag,
Expand Down

0 comments on commit 96e322e

Please sign in to comment.