casey / just

🤖 Just a command runner
https://just.systems
Creative Commons Zero v1.0 Universal
17.59k stars 399 forks source link

Improper alignment of the command list output with arguments." #1994

Open badele opened 1 month ago

badele commented 1 month ago

Just version: 1.24

If i execute this command just --list i have this output

We can see that the just program align correctly the recipes witouth argument, that is not true for the recipes with arguments

Available recipes:
    doc-update FAKEFILENAME # Update documentation
    help                    # Help it showed if just is called without arguments
    home-build              # Home build for local user
    home-deploy             # Home deploy local user
    iso-build               # Build NixOS ISO image
    iso-clean               # Clean ISO vm test
    iso-start               # Start test NixOS ISO image
    iso-stop                # Stop ISO vm test
    iso-test                # Test ISO image (ESC for select boot device)
    iso-test-install        # Test NixOS deployment with custom ISO image (ESC for select boot device)
    iso-test-remote-deploy  # Test NixOS update deployment with custom ISO image (ESC for select boot device)
    lint                    # Lint the project
    nixos-build hostname="" options="" # Nixos build local host
    nixos-deploy hostname="" options="" # Deploy NixOS on local host
    nixos-init-host host    # Init nixos host if not exists
    nixos-install hostname targetip port="22" # Install new <hostname> to <target>:<port> system wide
    nixos-remote-deploy hostname targetip # Deploy NixOS on remote host
    packages                # Show installed packages
    passwd-generate         # Generate random password
    precommit-check         # precommit check
    precommit-install       # Setup pre-commit
    precommit-update        # Update pre-commit
    repl                    # Repl the project
    secret-update FILE      # Update secrets SOPS

From bash, we can align the just output command with just --list | column -s '#' -t -o '#'

I think it would be nice to add the fix directly to the rust code of course if it's not too complicated to modify the just command output alignment code.

Available recipes:                            #
    doc-update FAKEFILENAME                   # Update documentation
    help                                      # Help it showed if just is called without arguments
    home-build                                # Home build for local user
    home-deploy                               # Home deploy local user
    iso-build                                 # Build NixOS ISO image
    iso-clean                                 # Clean ISO vm test
    iso-start                                 # Start test NixOS ISO image
    iso-stop                                  # Stop ISO vm test
    iso-test                                  # Test ISO image (ESC for select boot device)
    iso-test-install                          # Test NixOS deployment with custom ISO image (ESC for select boot device)
    iso-test-remote-deploy                    # Test NixOS update deployment with custom ISO image (ESC for select boot device)
    lint                                      # Lint the project
    nixos-build hostname="" options=""        # Nixos build local host
    nixos-deploy hostname="" options=""       # Deploy NixOS on local host
    nixos-init-host host                      # Init nixos host if not exists
    nixos-install hostname targetip port="22" # Install new <hostname> to <target>:<port> system wide
    nixos-remote-deploy hostname targetip     # Deploy NixOS on remote host
    packages                                  # Show installed packages
    passwd-generate                           # Generate random password
    precommit-check                           # precommit check
    precommit-install                         # Setup pre-commit
    precommit-update                          # Update pre-commit
    repl                                      # Repl the project
    secret-update FILE                        # Update secrets SOPS
johnalotoski commented 3 weeks ago

I'm also interested in seeing this addressed.