Skip to content

Commit

Permalink
Merge pull request #208 from rtCamp/enhance/change-environment-short-…
Browse files Browse the repository at this point in the history
…flag

Update short flag of `--environment` in `update` and `create` command
  • Loading branch information
Xieyt authored Jun 25, 2024
2 parents 5530a6b + 87732eb commit 00912d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frappe_manager/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def create(
),
] = [],
environment: Annotated[
FMBenchEnvType, typer.Option("--environment", "--env", help="Select bench environment type.")
FMBenchEnvType, typer.Option("--environment", "-e", help="Select bench environment type.")
] = FMBenchEnvType.dev,
letsencrypt_preferred_challenge: Annotated[
Optional[LETSENCRYPT_PREFERRED_CHALLENGE],
Expand Down Expand Up @@ -500,7 +500,7 @@ def update(
] = None,
environment: Annotated[
Optional[FMBenchEnvType],
typer.Option("--environment", "--env", help="Switch bench environment.", show_default=False),
typer.Option("--environment", "-e", help="Switch bench environment.", show_default=False),
] = None,
developer_mode: Annotated[
Optional[EnableDisableOptionsEnum],
Expand Down
7 changes: 4 additions & 3 deletions frappe_manager/utils/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
"code": " --apps erpnext --apps hrms"
},
{
"desc": "Install Frappe[{default_version}], ERPNext[{default_version}], and HRMS[develop].", "code": " --apps erpnext --apps hrms:develop"
"desc": "Install Frappe[{default_version}], ERPNext[{default_version}], and HRMS[develop].",
"code": " --apps erpnext --apps hrms:develop"
},
{
"desc": "Use Frappe production mode based bench.",
"code": " --env prod"
"code": " -e prod"
},
{
"desc": "Enable Admin Tools.",
Expand Down Expand Up @@ -154,7 +155,7 @@
},
{
"desc": "Switch to frappe production environment.",
"code": " --env prod"
"code": " -e prod"
},
{
"desc": "Switch to frappe development environment.",
Expand Down

0 comments on commit 00912d8

Please sign in to comment.