Skip to content

Commit e06d520

Browse files
committed
add epilog to main entrypoint
1 parent 8884a4f commit e06d520

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cycode/cli/app.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,19 @@
2525
rich_utils.RICH_HELP = "Try [cyan]'{command_path} {help_option}'[/] for help."
2626

2727

28+
_cycode_cli_docs = 'https://github.com/cycodehq/cycode-cli/blob/main/README.md'
29+
_cycode_cli_epilog = f"""[bold]Documentation[/]
30+
31+
32+
33+
For more details and advanced usage, visit: [link={_cycode_cli_docs}]{_cycode_cli_docs}[/link]
34+
"""
35+
2836
app = typer.Typer(
2937
pretty_exceptions_show_locals=False,
3038
pretty_exceptions_short=True,
3139
context_settings=CLI_CONTEXT_SETTINGS,
40+
epilog=_cycode_cli_epilog,
3241
rich_markup_mode='rich',
3342
no_args_is_help=True,
3443
add_completion=False, # we add it manually to control the rich help panel
@@ -125,6 +134,7 @@ def app_callback(
125134
),
126135
] = False,
127136
) -> None:
137+
"""[bold cyan]Cycode CLI - Command Line Interface for Cycode.[/]"""
128138
init_sentry()
129139
add_breadcrumb('cycode')
130140

0 commit comments

Comments
 (0)