lintnet info
$ lintnet info
{
"vesrion": "0.4.7",
"commit": "dbd81305b0538d5855fb07251463040fce765ca2",
"runtime": "linux/amd64",
"root_dir": "/home/uta8a/.local/share/lintnet",
"env": {}
}
(prebuilt binary from GitHub Releases)
$ ./lintnet info
{
"vesrion": "0.4.7",
"commit": "dbd81305b0538d5855fb07251463040fce765ca2",
"runtime": "linux/amd64",
"root_dir": "/home/uta8a/.local/share/lintnet",
"env": {}
}
Overview
lintnet from aqua shows only help and h when completion(zsh).
When I type lintnet and enter <tab>, it shows help, h.
$ lintnet h<tab>
help h -- Shows a list of commands or help for one command
lintnet uses urfave/cli/v2 in pkg/cli/completion.go, so I execute lintnet --generate-bash-completion.
$ command -v lintnet
/home/uta8a/.local/share/aquaproj-aqua/bin/lintnet
$ source <(lintnet completion zsh)
$ lintnet --version
lintnet version 0.4.7 (dbd81305b0538d5855fb07251463040fce765ca2)
$ lintnet --generate-bash-completion
help:Shows a list of commands or help for one command
h:Shows a list of commands or help for one command
lintnet from prebuilt binary(GitHub Packages) works fine.
## ./lintnet is downloaded from GitHub Packages
$ ./lintnet --version
lintnet version 0.4.7 (dbd81305b0538d5855fb07251463040fce765ca2)
$ ./lintnet --generate-bash-completion
version:Show version
lint:Lint files
l:Lint files
info:Output the information regarding lintnet
init:Scaffold configuration file
test:Test lint files
t:Test lint files
new:Create a lint file and a test file
completion:Output shell completion script for bash, zsh, or fish
help:Shows a list of commands or help for one command
h:Shows a list of commands or help for one command
I would like to use lintnet installed via aqua.
Could you help me with the cause of this?
How to reproduce
Please share related files such as lintnet.jsonnet, lint files, and data files.
- No jsonnet files, lint files, and data files.
Executed command and output
$ aqua g -i lintnet/lintnet
$ lintnet --generate-bash-completion
help:Shows a list of commands or help for one command
h:Shows a list of commands or help for one command
Debug output
$ LINTNET_LOG_LEVEL=debug lintnet --generate-bash-completion
help:Shows a list of commands or help for one command
h:Shows a list of commands or help for one command
Expected behaviour
$ lintnet --generate-bash-completion
version:Show version
lint:Lint files
l:Lint files
info:Output the information regarding lintnet
init:Scaffold configuration file
test:Test lint files
t:Test lint files
new:Create a lint file and a test file
completion:Output shell completion script for bash, zsh, or fish
help:Shows a list of commands or help for one command
h:Shows a list of commands or help for one command
Actual behaviour
$ lintnet --generate-bash-completion
help:Shows a list of commands or help for one command
h:Shows a list of commands or help for one command
Note
I use Ubuntu 22.04 and zsh.
$ uname -a
Linux rustacean 5.15.0-106-generic #116-Ubuntu SMP Wed Apr 17 09:17:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
lintnet info
(prebuilt binary from GitHub Releases)
Overview
lintnet from aqua shows only
helpandhwhen completion(zsh).When I type
lintnetand enter<tab>, it showshelp,h.lintnet uses urfave/cli/v2 in pkg/cli/completion.go, so I execute
lintnet --generate-bash-completion.lintnet from prebuilt binary(GitHub Packages) works fine.
I would like to use lintnet installed via aqua.
Could you help me with the cause of this?
How to reproduce
Please share related files such as lintnet.jsonnet, lint files, and data files.
Executed command and output
Debug output
Expected behaviour
Actual behaviour
Note
I use Ubuntu 22.04 and zsh.