Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Fix display of subcommands grouped by topic. #16

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

katyukha
Copy link
Contributor

@katyukha katyukha commented Aug 7, 2024

This pull request fixes display of grouped subcommands.

Before this fix:

$ odood -h
odood: Easily manage odoo installations. (0.0.16)

USAGE
  $ odood [-h] [--version] [-v] [-q] [-d] command

FLAGS
  -h, --help                prints help
      --version             prints version
  -v, --verbose             Enable verbose output
  -q, --quiet               Hide unnecessary output
  -d, --debug               Show additional debug information.

SUBCOMMANDS
  Main:
    script                  Run scripts in Odood environment.
    odoo                    Odoo-related utility commands.

  Shortcuts:
    restart                 Restart the server running in background.

  Main:
    venv                    Manage virtual environment for this project.
    info                    Print info about this Odood project.

  Shortcuts:
    start                   Run the server in background.

  Main:
    config                  Manage config of the project
    discover                Discover already installed odoo, and configure Odood to manage it.
    repo                    Manage git repositories.
    log                     View log.
    ci                      Various utility functions, mostly usefule for CI processes.
    db                      Database management commands

  Shortcuts:
    ual                     Update list of addons.

  Main:
    addons                  Manage third-party addons.
    init                    Initialize new odood project.
    test                    Run tests for mudles.
    server                  Server management commands.

  Shortcuts:
    stop                    Stop the server
    browse                  Open odoo in browser
    lsa                     List addons in specified directory.

  Main:
    psql                    Run psql for specified database

  Shortcuts:
    lsd                     Show the databases available for this odoo instance.

  Main:
    status                  Show the project status.

After this fix:

$ odood -h
odood: Easily manage odoo installations. (0.0.16)

USAGE
  $ odood [-h] [--version] [-v] [-q] [-d] command

FLAGS
  -h, --help                prints help
      --version             prints version
  -v, --verbose             Enable verbose output
  -q, --quiet               Hide unnecessary output
  -d, --debug               Show additional debug information.

SUBCOMMANDS
  Main:
    addons                  Manage third-party addons.
    ci                      Various utility functions, mostly usefule for CI processes.
    config                  Manage config of the project
    db                      Database management commands
    discover                Discover already installed odoo, and configure Odood to manage it.
    info                    Print info about this Odood project.
    init                    Initialize new odood project.
    log                     View log.
    odoo                    Odoo-related utility commands.
    psql                    Run psql for specified database
    repo                    Manage git repositories.
    script                  Run scripts in Odood environment.
    server                  Server management commands.
    status                  Show the project status.
    test                    Run tests for mudles.
    venv                    Manage virtual environment for this project.

  Shortcuts:
    browse                  Open odoo in browser
    lsa                     List addons in specified directory.
    lsd                     Show the databases available for this odoo instance.
    restart                 Restart the server running in background.
    start                   Run the server in background.
    stop                    Stop the server
    ual                     Update list of addons.

Please, do not forget to issue new release when this fix merged.

Thank you)

@katyukha
Copy link
Contributor Author

@robik Please, review this PR.

Thank you)

Copy link
Owner

@robik robik left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Thanks for the PR!

@robik robik merged commit 5b535df into robik:master Aug 21, 2024
10 checks passed
@robik
Copy link
Owner

robik commented Aug 21, 2024

@katyukha Version 1.1.0 with this fix released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants