Skip to content

Commit

Permalink
Merge pull request #597 from writer/deploy_alias
Browse files Browse the repository at this point in the history
feat: add deploy alias
  • Loading branch information
ramedina86 authored Oct 28, 2024
2 parents 54dbc4d + ea0807d commit 1e1da6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/writer/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import click

import writer.serve
from writer.deploy import cloud
from writer.deploy import cloud, deploy

CONTEXT_SETTINGS = {'help_option_names': ['-h', '--help']}
@click.group(
Expand Down Expand Up @@ -73,6 +73,7 @@ def hello(port: Optional[int], host: str, enable_remote_edit):
enable_server_setup=False)


main.add_command(deploy, name="deploy")
main.add_command(cloud)

def create_app(app_path: str, template_name: Optional[str], overwrite=False):
Expand Down
2 changes: 1 addition & 1 deletion src/writer/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def cloud():
prompt="Enter your API key",
hide_input=True, help="Writer API key"
)
@click.option('--env', '-e', multiple=True, default=[], help="Environment to deploy the app to")
@click.option('--env', '-e', multiple=True, default=[], help="Set environment variables for the app (e.g., --env KEY=VALUE)")
@click.option('--force', '-f', default=False, is_flag=True, help="Ignores warnings and overwrites the app")
@click.option('--verbose', '-v', default=False, is_flag=True, help="Enable verbose mode")
@click.argument('path')
Expand Down

0 comments on commit 1e1da6f

Please sign in to comment.