cli
cli
@click.group(cls=DefaultCommandGroup)
@click.version_option()
def cli()
create-dara-app CLI. Runs the bootstrap
command when a subcommand is not specified.
bootstrap
@cli.command(default=True)
@click.argument('directory', type=click.Path(exists=False), default='.')
@click.option('--debug',
help='Enable debug logging',
is_flag=True,
default=False)
@click.option('--no-install',
help='Skip installing dependencies',
is_flag=True,
default=False)
@click.option('--no-input',
help='Skip all user prompting',
is_flag=True,
default=False)
@click.option('--project-name',
help='Project name',
type=str,
default='Decision App')
@click.option('--package-name',
help='Python package name. Example: my_decision_app',
type=str)
@click.option(
'--overwrite-if-exists',
help='Overwrite the contents of the output directory if it exists.',
is_flag=True,
default=False,
)
@click.option('--packaging',
help='Whether to use pip or poetry',
type=click.Choice(['pip', 'poetry']),
default='poetry')
def bootstrap(directory: str = '.',
debug: bool = False,
no_install: bool = False,
no_input: bool = False,
project_name: str = 'Decision App',
package_name: str = '',
overwrite_if_exists: bool = False,
packaging: Literal['pip', 'poetry'] = 'poetry')
Creates a new Decision App project under specified parent DIRECTORY with the default template. Uses the Dara version matching the CLI's version.