casey / casey/just

Improper alignment of the command list output with arguments."

Open
#1,994 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

**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

```text
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 to : 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.

```text
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 to : 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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.