8000 Add support for `showcommands` option to all commands · Issue #9 · gittower/git-flow-next · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for showcommands option to all commands #9

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

Open
alexrinass opened this issue Apr 17, 2025 · 1 comment
Open

Add support for showcommands option to all commands #9

alexrinass opened this issue Apr 17, 2025 · 1 comment

Comments

@alexrinass
Copy link
Contributor
alexrinass commented Apr 17, 2025

Add support for the --showcommands option across all git-flow commands, allowing users to see the underlying git commands being executed. This makes the behavior consistent across all git-flow operations and helps users understand the underlying git operations.

  • Implement the --showcommands option as a global option for all git-flow commands
  • The option should:
    1. Display each git command before it is executed
    2. Format the command display in a consistent and readable way
    3. Work with all git-flow operations (init, feature, release, hotfix, etc.)
  • Command syntax addition:
    git flow <command> [--showcommands] [other command-specific options]
    
  • Implementation approaches:
    • Add the option to the common options parser
    • Create a shared function for command display
    • Ensure consistent behavior across all command modules
  • Configuration options:
    • Add support for setting this as a default via git config:
      • gitflow.showcommands=true|false
    • Command-line option should override config setting
  • Behavior:
    • When enabled, print each git command to stdout before execution
    • Do not interfere with command output or error handling
    • Include appropriate indentation or prefixing for readability
  • Update documentation to reflect this global option
Copy link
linear bot commented Apr 17, 2025

@alexrinass alexrinass changed the title Add support for “showcommands” option to all commands Add support for showcommands option to all commands Apr 19, 2025
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

No branches or pull requests

1 participant
0