Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/fessctl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,9 @@ def ping(
raise typer.Exit(code=1)


if __name__ == "__main__":
def main():
Copy link

Copilot AI Aug 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main() function should include a docstring to document its purpose as the CLI entry point, especially since it's intended for programmatic use from other modules.

Suggested change
def main():
def main():
"""
CLI entry point for fessctl.
This function invokes the Typer application and can be called programmatically
from other modules to start the CLI.
"""

Copilot uses AI. Check for mistakes.
app()


if __name__ == "__main__":
main()