├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── Argcfile.sh ├── CONTRIBUTING.md ├── LICENSE ├── MANIFEST.md ├── README.md ├── completions ├── 7z.sh ├── 7za.sh ├── 7zr.sh ├── Rscript.sh ├── a2ps.sh ├── ab.sh ├── abcde.sh ├── abook.sh ├── ack.sh ├── act.sh ├── actionlint.sh ├── adb.sh ├── ag.sh ├── age-keygen.sh ├── age.sh ├── aichat.sh ├── aider.sh ├── airflow.sh ├── amplify.sh ├── ansible-config.sh ├── ansible-console.sh ├── ansible-doc.sh ├── ansible-galaxy.sh ├── ansible-lint.sh ├── ansible-playbook.sh ├── ansible-vault.sh ├── ansible.sh ├── ant.sh ├── apachectl.sh ├── appwrite.sh ├── apropos.sh ├── ar.sh ├── argo.sh ├── aria2c.sh ├── asciidoctor.sh ├── asciinema.sh ├── asdf.sh ├── assh.sh ├── atlas.sh ├── augtool.sh ├── autoconf.sh ├── autocorrect.sh ├── autojump.sh ├── awk.sh ├── aws.sh ├── awsume.sh ├── az.sh ├── babel.sh ├── bandwhich.sh ├── base64.sh ├── basename.sh ├── basenc.sh ├── bash.sh ├── bat.sh ├── bats.sh ├── bazel.sh ├── bc.sh ├── bfs.sh ├── binwalk.sh ├── bison.sh ├── black.sh ├── bore.sh ├── bosh.sh ├── boundary.sh ├── bpython.sh ├── brew.sh ├── broot.sh ├── brotli.sh ├── browser-sync.sh ├── btm.sh ├── buf.sh ├── buku.sh ├── bun.sh ├── bundle.sh ├── bunzip2.sh ├── bw.sh ├── bws.sh ├── bzcat.sh ├── bzip2.sh ├── c++.sh ├── cabal.sh ├── caddy.sh ├── cargo.sh ├── cargo │ ├── audit.sh │ ├── binstall.sh │ ├── bloat.sh │ ├── contract.sh │ ├── crev.sh │ ├── fuzz.sh │ ├── geiger.sh │ ├── hack.sh │ ├── insta.sh │ ├── leptos.sh │ ├── license.sh │ ├── llvm-cov.sh │ ├── make.sh │ ├── ndk.sh │ ├── nextest.sh │ ├── outdated.sh │ ├── semver-checks.sh │ ├── sort.sh │ ├── sqlx.sh │ ├── tarpaulin.sh │ ├── tauri.sh │ ├── udeps.sh │ ├── watch.sh │ └── zigbuild.sh ├── cat.sh ├── cc.sh ├── certtool.sh ├── cf.sh ├── cheat.sh ├── checkov.sh ├── chezmoi.sh ├── chgrp.sh ├── chmod.sh ├── choose.sh ├── chown.sh ├── chroma.sh ├── chroot.sh ├── circleci.sh ├── cksum.sh ├── clang++.sh ├── clang.sh ├── clib.sh ├── clj.sh ├── clojure.sh ├── cloudflared.sh ├── cmake.sh ├── cmark.sh ├── cmus.sh ├── code-insiders.sh ├── code.sh ├── coffee.sh ├── column.sh ├── comm.sh ├── composer.sh ├── conda.sh ├── conky.sh ├── consul.sh ├── coreutils.sh ├── cosign.sh ├── cp.sh ├── cpio.sh ├── croc.sh ├── crontab.sh ├── cscope.sh ├── csplit.sh ├── cssh.sh ├── csview.sh ├── csvlens.sh ├── ctop.sh ├── curl.sh ├── cut.sh ├── cwebp.sh ├── darcs.sh ├── darktable-cli.sh ├── darktable.sh ├── dart.sh ├── dasel.sh ├── date.sh ├── dbmate.sh ├── dbt.sh ├── dc.sh ├── dd.sh ├── ddev.sh ├── ddgr.sh ├── ddosify.sh ├── delta.sh ├── deno.sh ├── devbox.sh ├── df.sh ├── diff.sh ├── diff3.sh ├── difft.sh ├── dig.sh ├── dir.sh ├── dircolors.sh ├── direnv.sh ├── dirname.sh ├── dive.sh ├── dnsmasq.sh ├── docker-compose.sh ├── docker.sh ├── doctl.sh ├── doggo.sh ├── doppler.sh ├── dos2unix.sh ├── dotnet.sh ├── dprint.sh ├── drill.sh ├── dropbox.sh ├── du.sh ├── dua.sh ├── duf.sh ├── dufs.sh ├── dune.sh ├── dust.sh ├── earthly.sh ├── ed.sh ├── efibootmgr.sh ├── egrep.sh ├── elinks.sh ├── elixir.sh ├── elvish.sh ├── emacs.sh ├── enscript.sh ├── entr.sh ├── env.sh ├── erd.sh ├── esbuild.sh ├── eslint.sh ├── espeak.sh ├── exa.sh ├── exercism.sh ├── expand.sh ├── expo.sh ├── eza.sh ├── fab.sh ├── fastlane.sh ├── fc-cache.sh ├── fc-cat.sh ├── fc-list.sh ├── fclones.sh ├── fd.sh ├── feh.sh ├── feroxbuster.sh ├── fetchmail.sh ├── ffmpeg.sh ├── fgrep.sh ├── figlet.sh ├── file.sh ├── find.sh ├── firebase.sh ├── firefox.sh ├── fish.sh ├── flac.sh ├── flamegraph.sh ├── flatpak.sh ├── flex.sh ├── flutter.sh ├── fmt.sh ├── fnm.sh ├── fold.sh ├── fortune.sh ├── fq.sh ├── free.sh ├── ftp.sh ├── fvm.sh ├── fx.sh ├── fzf.sh ├── fzy.sh ├── g++.sh ├── gatsby.sh ├── gawk.sh ├── gcc.sh ├── gcloud.sh ├── gdb.sh ├── gdu.sh ├── gem.sh ├── genact.sh ├── getent.sh ├── getmail.sh ├── gh.sh ├── ghorg.sh ├── ghostscript.sh ├── ghq.sh ├── ghz.sh ├── gibo.sh ├── gio.sh ├── git.sh ├── git │ ├── cliff.sh │ ├── crypt.sh │ ├── lfs.sh │ ├── open.sh │ ├── quick-stats.sh │ └── sizer.sh ├── gitleaks.sh ├── glab.sh ├── glances.sh ├── global.sh ├── glow.sh ├── gm.sh ├── gnutls-cli.sh ├── gnutls-serv.sh ├── go.sh ├── goawk.sh ├── goctl.sh ├── godoc.sh ├── gofmt.sh ├── gojq.sh ├── goose.sh ├── gopass.sh ├── goreleaser.sh ├── gource.sh ├── gpg-agent.sh ├── gpg.sh ├── gphoto2.sh ├── gping.sh ├── gprof.sh ├── gptscript.sh ├── gradle.sh ├── grep.sh ├── grex.sh ├── groff.sh ├── gron.sh ├── groups.sh ├── grpcurl.sh ├── grype.sh ├── gs.sh ├── gsettings.sh ├── guix.sh ├── gum.sh ├── gunzip.sh ├── gzip.sh ├── hadolint.sh ├── hashcat.sh ├── hashdeep.sh ├── hasura.sh ├── head.sh ├── helm.sh ├── helmfile.sh ├── help2man.sh ├── hexchat.sh ├── hexdump.sh ├── hexo.sh ├── hexyl.sh ├── highlight.sh ├── himalaya.sh ├── hledger.sh ├── hostname.sh ├── hrp.sh ├── htmlq.sh ├── httm.sh ├── http.sh ├── https.sh ├── hugo.sh ├── hunspell.sh ├── hurl.sh ├── hx.sh ├── hyperfine.sh ├── icdiff.sh ├── iconv.sh ├── id.sh ├── install.sh ├── ip.sh ├── ipatool.sh ├── ipinfo.sh ├── irssi.sh ├── istioctl.sh ├── jaq.sh ├── jar.sh ├── java.sh ├── jdupes.sh ├── jenv.sh ├── jj.sh ├── jless.sh ├── jmeter.sh ├── jnv.sh ├── join.sh ├── joker.sh ├── jq.sh ├── jql.sh ├── julia.sh ├── just.sh ├── k3d.sh ├── k6.sh ├── k9s.sh ├── kak.sh ├── keepassxc-cli.sh ├── keybase.sh ├── keytool.sh ├── khal.sh ├── kill.sh ├── killall.sh ├── killport.sh ├── kind.sh ├── kompose.sh ├── kops.sh ├── kotlin.sh ├── kubeadm.sh ├── kubectl.sh ├── kubectx.sh ├── kubens.sh ├── kubescape.sh ├── kustomize.sh ├── laravel.sh ├── lazygit.sh ├── ldconfig.sh ├── ldd.sh ├── lefthook.sh ├── lerna.sh ├── less.sh ├── lf.sh ├── lima.sh ├── limactl.sh ├── link.sh ├── links.sh ├── linux │ ├── acpi.sh │ ├── acpitool.sh │ ├── adduser.sh │ ├── alsactl.sh │ ├── alsamixer.sh │ ├── amixer.sh │ ├── apk.sh │ ├── aplay.sh │ ├── apt-cache.sh │ ├── apt-get.sh │ ├── apt.sh │ ├── aptitude.sh │ ├── arecord.sh │ ├── arp.sh │ ├── arping.sh │ ├── at.sh │ ├── attr.sh │ ├── avahi-browse.sh │ ├── avahi-resolve.sh │ ├── beep.sh │ ├── bootctl.sh │ ├── brctl.sh │ ├── brightnessctl.sh │ ├── btop.sh │ ├── cdrdao.sh │ ├── cdrecord.sh │ ├── cfdisk.sh │ ├── chattr.sh │ ├── choom.sh │ ├── chpasswd.sh │ ├── chrt.sh │ ├── chsh.sh │ ├── coredumpctl.sh │ ├── cryptsetup.sh │ ├── dbus-launch.sh │ ├── dbus-monitor.sh │ ├── dbus-send.sh │ ├── dconf.sh │ ├── dhclient.sh │ ├── dhcpcd.sh │ ├── dict.sh │ ├── dkms.sh │ ├── dmenu.sh │ ├── dmesg.sh │ ├── dmidecode.sh │ ├── dnf.sh │ ├── doas.sh │ ├── dpkg-deb.sh │ ├── dpkg-reconfigure.sh │ ├── dpkg.sh │ ├── dstat.sh │ ├── emerge.sh │ ├── encfs.sh │ ├── ethtool.sh │ ├── evince.sh │ ├── fakeroot.sh │ ├── fallocate.sh │ ├── fdisk.sh │ ├── findmnt.sh │ ├── fuser.sh │ ├── fwupdmgr.sh │ ├── getfacl.sh │ ├── getfattr.sh │ ├── gpasswd.sh │ ├── groupadd.sh │ ├── groupdel.sh │ ├── groupmems.sh │ ├── groupmod.sh │ ├── halt.sh │ ├── hdparm.sh │ ├── hostnamectl.sh │ ├── htop.sh │ ├── hwclock.sh │ ├── hwinfo.sh │ ├── ifconfig.sh │ ├── ifdown.sh │ ├── iftop.sh │ ├── ifup.sh │ ├── ionice.sh │ ├── iostat.sh │ ├── ipset.sh │ ├── iptables.sh │ ├── iwconfig.sh │ ├── journalctl.sh │ ├── kpartx.sh │ ├── last.sh │ ├── lastb.sh │ ├── lastlog.sh │ ├── loadkeys.sh │ ├── localectl.sh │ ├── loginctl.sh │ ├── look.sh │ ├── losetup.sh │ ├── lsattr.sh │ ├── lsb_release.sh │ ├── lsblk.sh │ ├── lscpu.sh │ ├── lshw.sh │ ├── lslocks.sh │ ├── lslogins.sh │ ├── lsmem.sh │ ├── lsns.sh │ ├── lsusb.sh │ ├── ltrace.sh │ ├── machinectl.sh │ ├── makepkg.sh │ ├── mbuffer.sh │ ├── meld.sh │ ├── mii-tool.sh │ ├── mkfs.sh │ ├── mkpasswd.sh │ ├── mkswap.sh │ ├── modinfo.sh │ ├── modprobe.sh │ ├── mount.sh │ ├── mpstat.sh │ ├── namei.sh │ ├── netctl-auto.sh │ ├── netctl.sh │ ├── networkctl.sh │ ├── nmcli.sh │ ├── notify-send.sh │ ├── nsenter.sh │ ├── opkg.sh │ ├── pacman.sh │ ├── passwd.sh │ ├── perf.sh │ ├── pidstat.sh │ ├── ping.sh │ ├── plocate.sh │ ├── poweroff.sh │ ├── reboot.sh │ ├── renice.sh │ ├── resolvectl.sh │ ├── rfkill.sh │ ├── rmmod.sh │ ├── route.sh │ ├── service.sh │ ├── setfacl.sh │ ├── setfattr.sh │ ├── setpriv.sh │ ├── setsid.sh │ ├── shutdown.sh │ ├── snap.sh │ ├── ss.sh │ ├── su.sh │ ├── sulogin.sh │ ├── sv.sh │ ├── systemctl.sh │ ├── systemd-analyze.sh │ ├── systemd-nspawn.sh │ ├── timedatectl.sh │ ├── tracepath.sh │ ├── traceroute.sh │ ├── tune2fs.sh │ ├── udevadm.sh │ ├── umount.sh │ ├── unshare.sh │ ├── update-alternatives.sh │ ├── useradd.sh │ ├── userdel.sh │ ├── usermod.sh │ ├── wipefs.sh │ ├── wodim.sh │ ├── wpa_cli.sh │ ├── xdg-mime.sh │ ├── xdg-open.sh │ ├── xrandr.sh │ ├── yum.sh │ ├── zfs.sh │ ├── zpool.sh │ └── zypper.sh ├── lldb.sh ├── ln.sh ├── lnav.sh ├── locale.sh ├── locate.sh ├── locust.sh ├── logrotate.sh ├── lp.sh ├── lpass.sh ├── ls.sh ├── lsd.sh ├── lsof.sh ├── lua.sh ├── luarocks.sh ├── lux.sh ├── lychee.sh ├── lynis.sh ├── lynx.sh ├── lzcat.sh ├── lzma.sh ├── m4.sh ├── mackup.sh ├── macos │ ├── afplay.sh │ ├── arp.sh │ ├── asr.sh │ ├── brctl.sh │ ├── caffeinate.sh │ ├── codesign.sh │ ├── defaults.sh │ ├── diskutil.sh │ ├── dscacheutil.sh │ ├── fs_usage.sh │ ├── hdiutil.sh │ ├── kmutil.sh │ ├── launchctl.sh │ ├── m.sh │ ├── mas.sh │ ├── mdfind.sh │ ├── mdimport.sh │ ├── mdls.sh │ ├── mdutil.sh │ ├── networkQuality.sh │ ├── networksetup.sh │ ├── nvram.sh │ ├── osascript.sh │ ├── otool.sh │ ├── pbcopy.sh │ ├── ping.sh │ ├── pkgutil.sh │ ├── pmset.sh │ ├── port.sh │ ├── shortcuts.sh │ ├── simctl.sh │ ├── softwareupdate.sh │ ├── sw_vers.sh │ ├── system_profiler.sh │ ├── tmutil.sh │ ├── tuist.sh │ ├── xcode-select.sh │ ├── xcodebuild.sh │ ├── xcodes.sh │ └── xcrun.sh ├── magick.sh ├── make.sh ├── man.sh ├── mask.sh ├── mat2.sh ├── md5sum.sh ├── mdbook.sh ├── meson.sh ├── micro.sh ├── minikube.sh ├── miniserve.sh ├── mitmdump.sh ├── mitmproxy.sh ├── mitmweb.sh ├── mix.sh ├── mkdir.sh ├── mkdocs.sh ├── mkfifo.sh ├── mknod.sh ├── mktemp.sh ├── molecule.sh ├── mongocli.sh ├── mongoimport.sh ├── mongosh.sh ├── monolith.sh ├── mosh.sh ├── most.sh ├── mpc.sh ├── mpv.sh ├── msfconsole.sh ├── msfdb.sh ├── mtr.sh ├── muffet.sh ├── mutt.sh ├── mv.sh ├── mvn.sh ├── mypy.sh ├── mysql.sh ├── mysqldump.sh ├── naabu.sh ├── nali.sh ├── nano.sh ├── navi.sh ├── nc.sh ├── ncat.sh ├── ncdu.sh ├── ncu.sh ├── neofetch.sh ├── neomutt.sh ├── nest.sh ├── netcat.sh ├── nethogs.sh ├── newman.sh ├── newrelic.sh ├── newsboat.sh ├── next.sh ├── nexttrace.sh ├── nfpm.sh ├── ng.sh ├── nginx.sh ├── ngrep.sh ├── ngrok.sh ├── nhost.sh ├── nice.sh ├── ninja.sh ├── nix-build.sh ├── nix-channel.sh ├── nix-collect-garbage.sh ├── nix-copy-closure.sh ├── nix-env.sh ├── nix-hash.sh ├── nix-instantiate.sh ├── nix-prefetch-url.sh ├── nix-shell.sh ├── nix-store.sh ├── nixpacks.sh ├── nl.sh ├── nm.sh ├── nmap.sh ├── nnn.sh ├── node.sh ├── nohup.sh ├── nomad.sh ├── npm.sh ├── npx.sh ├── nu.sh ├── numfmt.sh ├── nvim.sh ├── nvm.sh ├── objdump.sh ├── ocaml.sh ├── od.sh ├── oh-my-posh.sh ├── oha.sh ├── okteto.sh ├── ollama.sh ├── onefetch.sh ├── op.sh ├── opa.sh ├── opam.sh ├── openssl.sh ├── optipng.sh ├── osqueryi.sh ├── ouch.sh ├── oxipng.sh ├── oxlint.sh ├── packer.sh ├── pactl.sh ├── pandoc.sh ├── parallel.sh ├── pass.sh ├── paste.sh ├── pastel.sh ├── patch.sh ├── pathchk.sh ├── pdfcpu.sh ├── pdfgrep.sh ├── peco.sh ├── pee.sh ├── percol.sh ├── perl.sh ├── pest.sh ├── pg_dump.sh ├── pg_dumpall.sh ├── pg_restore.sh ├── pgcli.sh ├── pgrep.sh ├── php.sh ├── phpunit.sh ├── pidof.sh ├── pinky.sh ├── pip.sh ├── pip3.sh ├── pipenv.sh ├── pipx.sh ├── pkg-config.sh ├── pkill.sh ├── playwright.sh ├── plutil.sh ├── pm2.sh ├── pmap.sh ├── pnpm.sh ├── pocketbase.sh ├── pod.sh ├── podman.sh ├── poetry.sh ├── poff.sh ├── pon.sh ├── pop.sh ├── powertop.sh ├── pr.sh ├── pre-commit.sh ├── presenterm.sh ├── prettier.sh ├── printenv.sh ├── procs.sh ├── pry.sh ├── ps.sh ├── psql.sh ├── pstree.sh ├── ptx.sh ├── pueue.sh ├── pulumi.sh ├── pv.sh ├── pwd.sh ├── pyenv.sh ├── pyright.sh ├── pytest.sh ├── python.sh ├── python3.sh ├── qrencode.sh ├── quilt.sh ├── rake.sh ├── ranger.sh ├── rar.sh ├── rbenv.sh ├── rclone.sh ├── readelf.sh ├── readlink.sh ├── realm.sh ├── realpath.sh ├── rebar3.sh ├── recode.sh ├── redis-cli.sh ├── replibyte.sh ├── restic.sh ├── resume.sh ├── rg.sh ├── rga.sh ├── rgrep.sh ├── rhash.sh ├── rich.sh ├── rifle.sh ├── rm.sh ├── rmdir.sh ├── robot.sh ├── rollup.sh ├── rsync.sh ├── rtx.sh ├── ruby.sh ├── ruff.sh ├── rustc.sh ├── rustfmt.sh ├── rustup.sh ├── rye.sh ├── s3cmd.sh ├── sad.sh ├── sbt.sh ├── sc-im.sh ├── scc.sh ├── scons.sh ├── scp.sh ├── scrcpy.sh ├── screen.sh ├── scrot.sh ├── scrypt.sh ├── sd.sh ├── sdk.sh ├── sed.sh ├── seq.sh ├── serve.sh ├── sftp.sh ├── sftpgo.sh ├── sg.sh ├── sh.sh ├── sha1sum.sh ├── sha256sum.sh ├── sha512sum.sh ├── shar.sh ├── shasum.sh ├── shellcheck.sh ├── shfmt.sh ├── shred.sh ├── shuf.sh ├── silicon.sh ├── sk.sh ├── slabtop.sh ├── slides.sh ├── slrn.sh ├── smartctl.sh ├── smbclient.sh ├── sops.sh ├── sort.sh ├── source-highlight.sh ├── speedtest.sh ├── split.sh ├── sqlfluff.sh ├── sqlite3.sh ├── ssh-agent.sh ├── ssh-copy-id.sh ├── ssh-keygen.sh ├── ssh.sh ├── ssh3.sh ├── sshfs.sh ├── stack.sh ├── starship.sh ├── stat.sh ├── stdbuf.sh ├── stow.sh ├── strace.sh ├── strings.sh ├── strip.sh ├── stripe.sh ├── stty.sh ├── subl.sh ├── sudo.sh ├── sudoedit.sh ├── sum.sh ├── supabase.sh ├── supervisorctl.sh ├── surreal.sh ├── svgo.sh ├── svn.sh ├── svtplay-dl.sh ├── swaks.sh ├── swc.sh ├── swift.sh ├── syft.sh ├── sync.sh ├── sysctl.sh ├── t-rec.sh ├── tac.sh ├── tail.sh ├── tailspin.sh ├── tar.sh ├── task.sh ├── tcpdump.sh ├── tcsh.sh ├── tee.sh ├── telnet.sh ├── terraform.sh ├── terragrunt.sh ├── terramate.sh ├── tesseract.sh ├── tex.sh ├── tfenv.sh ├── tfsec.sh ├── tidy.sh ├── tig.sh ├── time.sh ├── timeout.sh ├── tin.sh ├── tinygo.sh ├── tkn.sh ├── tldr.sh ├── tload.sh ├── tmate.sh ├── tmux.sh ├── tmuxinator.sh ├── tokei.sh ├── top.sh ├── torsocks.sh ├── touch.sh ├── tput.sh ├── tr.sh ├── trash-empty.sh ├── trash-list.sh ├── trash-put.sh ├── trash-restore.sh ├── tree.sh ├── trip.sh ├── trivy.sh ├── truncate.sh ├── trunk.sh ├── ts-node.sh ├── tsc.sh ├── tshark.sh ├── tspin.sh ├── tsx.sh ├── tty.sh ├── ttyd.sh ├── turbo.sh ├── twiggy.sh ├── typos.sh ├── typst.sh ├── uconv.sh ├── ug.sh ├── ugrep.sh ├── uname.sh ├── unexpand.sh ├── uniq.sh ├── unison.sh ├── unix2dos.sh ├── unlink.sh ├── unlzma.sh ├── unxz.sh ├── unzip.sh ├── upower.sh ├── uptime.sh ├── upx.sh ├── usql.sh ├── uv.sh ├── vagrant.sh ├── vale.sh ├── valgrind.sh ├── vault.sh ├── vcpkg.sh ├── vdir.sh ├── vegeta.sh ├── vela.sh ├── vercel.sh ├── vfox.sh ├── vhs.sh ├── vi.sh ├── viddy.sh ├── vim.sh ├── vimdiff.sh ├── virsh.sh ├── visudo.sh ├── vite.sh ├── viu.sh ├── vivid.sh ├── vlc.sh ├── vmstat.sh ├── volta.sh ├── vpnc.sh ├── vultr.sh ├── w.sh ├── w3m.sh ├── wasm-bindgen.sh ├── wasm-merge.sh ├── wasm-opt.sh ├── wasm-pack.sh ├── wasm-tools.sh ├── wasm2js.sh ├── wasmedge.sh ├── wasmer.sh ├── watch.sh ├── watchexec.sh ├── watchgnupg.sh ├── watchman.sh ├── watson.sh ├── waypoint.sh ├── wc.sh ├── wdiff.sh ├── webpack-cli.sh ├── websocat.sh ├── wezterm.sh ├── wget.sh ├── whatis.sh ├── which.sh ├── who.sh ├── whois.sh ├── windows │ ├── nssm.sh │ ├── scoop.sh │ ├── winget.sh │ └── wsl.sh ├── wine.sh ├── wineboot.sh ├── winepath.sh ├── winetricks.sh ├── wireshark.sh ├── wp.sh ├── wrangler.sh ├── wrk.sh ├── wscat.sh ├── xargs.sh ├── xc.sh ├── xclip.sh ├── xcodeproj.sh ├── xh.sh ├── xinput.sh ├── xmake.sh ├── xmlstarlet.sh ├── xonsh.sh ├── xplr.sh ├── xsel.sh ├── xsv.sh ├── xxd.sh ├── xxh128sum.sh ├── xxh32sum.sh ├── xxh64sum.sh ├── xxhsum.sh ├── xz.sh ├── xzcat.sh ├── yadm.sh ├── yarn.sh ├── yj.sh ├── ykman.sh ├── yomo.sh ├── you-get.sh ├── youtube-dl.sh ├── yq.sh ├── yt-dlp.sh ├── zathura.sh ├── zcat.sh ├── zed.sh ├── zellij.sh ├── zenith.sh ├── zig.sh ├── zip.sh ├── zipcloak.sh ├── zk.sh ├── zola.sh └── zoxide.sh ├── docs ├── argc-macros.md ├── complete-patterns.md └── generate.md ├── scripts ├── download-tools.sh ├── format.sh ├── generate.sh ├── inspect-fns.awk ├── parse-script.awk ├── parse-table.awk └── setup-shell.sh ├── src ├── 7z.sh ├── 7za.sh ├── 7zr.sh ├── Rscript.sh ├── a2ps.sh ├── ab.sh ├── abcde.sh ├── abook.sh ├── ack.sh ├── act.sh ├── actionlint.sh ├── adb.sh ├── ag.sh ├── age.sh ├── aichat.sh ├── airflow.sh ├── amplify.sh ├── ansible-config.sh ├── ansible-console.sh ├── ansible-doc.sh ├── ansible-galaxy.sh ├── ansible-lint.sh ├── ansible-playbook.sh ├── ansible-vault.sh ├── ansible.sh ├── ant.sh ├── apachectl.sh ├── apropos.sh ├── ar.sh ├── argo.sh ├── aria2c.sh ├── asciinema.sh ├── asdf.sh ├── assh.sh ├── atlas.sh ├── augtool.sh ├── autoconf.sh ├── autocorrect.sh ├── awk.sh ├── aws.sh ├── az.sh ├── bandwhich.sh ├── bash.sh ├── bat.sh ├── bazel.sh ├── bc.sh ├── bfs.sh ├── binwalk.sh ├── bison.sh ├── black.sh ├── bosh.sh ├── boundary.sh ├── bpython.sh ├── brew.sh ├── broot.sh ├── browser-sync.sh ├── btm.sh ├── buf.sh ├── buku.sh ├── bun.sh ├── bundle.sh ├── bunzip2.sh ├── bws.sh ├── bzcat.sh ├── bzip2.sh ├── c++.sh ├── cabal.sh ├── caddy.sh ├── cargo.sh ├── cc.sh ├── certtool.sh ├── cf.sh ├── cheat.sh ├── chezmoi.sh ├── chgrp.sh ├── chmod.sh ├── choose.sh ├── chown.sh ├── chroma.sh ├── chroot.sh ├── circleci.sh ├── clang++.sh ├── clang.sh ├── clib.sh ├── clj.sh ├── clojure.sh ├── cloudflared.sh ├── cmake.sh ├── cmark.sh ├── code-insiders.sh ├── code.sh ├── coffee.sh ├── composer.sh ├── conda.sh ├── conky.sh ├── consul.sh ├── coreutils.sh ├── cosign.sh ├── cp.sh ├── cpio.sh ├── croc.sh ├── crontab.sh ├── cscope.sh ├── cssh.sh ├── ctop.sh ├── curl.sh ├── cwebp.sh ├── darktable-cli.sh ├── darktable.sh ├── dart.sh ├── dasel.sh ├── dbmate.sh ├── dbt.sh ├── dd.sh ├── ddev.sh ├── ddgr.sh ├── ddosify.sh ├── delta.sh ├── deno.sh ├── devbox.sh ├── df.sh ├── diff.sh ├── difft.sh ├── dig.sh ├── dir.sh ├── direnv.sh ├── dirname.sh ├── dive.sh ├── dnsmasq.sh ├── docker-compose.sh ├── docker.sh ├── doctl.sh ├── doggo.sh ├── doppler.sh ├── dotnet.sh ├── drill.sh ├── dropbox.sh ├── du.sh ├── dua.sh ├── duf.sh ├── dune.sh ├── dust.sh ├── earthly.sh ├── efibootmgr.sh ├── egrep.sh ├── elinks.sh ├── elixir.sh ├── elvish.sh ├── enscript.sh ├── entr.sh ├── env.sh ├── erd.sh ├── esbuild.sh ├── espeak.sh ├── exa.sh ├── expand.sh ├── expo.sh ├── eza.sh ├── fab.sh ├── fastlane.sh ├── fc-cache.sh ├── fc-cat.sh ├── fc-list.sh ├── fd.sh ├── feh.sh ├── feroxbuster.sh ├── fetchmail.sh ├── ffmpeg.sh ├── fgrep.sh ├── figlet.sh ├── file.sh ├── find.sh ├── firefox.sh ├── fish.sh ├── flac.sh ├── flamegraph.sh ├── flatpak.sh ├── flutter.sh ├── fnm.sh ├── fortune.sh ├── fq.sh ├── ftp.sh ├── fvm.sh ├── fx.sh ├── fzf.sh ├── g++.sh ├── gatsby.sh ├── gawk.sh ├── gcc.sh ├── gcloud.sh ├── gdb.sh ├── gdu.sh ├── gem.sh ├── getent.sh ├── gh.sh ├── ghorg.sh ├── ghostscript.sh ├── ghz.sh ├── gibo.sh ├── gio.sh ├── git.sh ├── gitleaks.sh ├── glab.sh ├── global.sh ├── glow.sh ├── gm.sh ├── gnutls-cli.sh ├── gnutls-serv.sh ├── go.sh ├── goawk.sh ├── goctl.sh ├── godoc.sh ├── gofmt.sh ├── goose.sh ├── gopass.sh ├── goreleaser.sh ├── gpg.sh ├── gphoto2.sh ├── gping.sh ├── gprof.sh ├── gptscript.sh ├── gradle.sh ├── grep.sh ├── groff.sh ├── groups.sh ├── grpcurl.sh ├── grype.sh ├── gs.sh ├── gsettings.sh ├── guix.sh ├── gum.sh ├── gunzip.sh ├── gzip.sh ├── hashcat.sh ├── hashdeep.sh ├── hasura.sh ├── helm.sh ├── helmfile.sh ├── help2man.sh ├── hexdump.sh ├── hexo.sh ├── highlight.sh ├── himalaya.sh ├── hledger.sh ├── hostname.sh ├── hrp.sh ├── http.sh ├── https.sh ├── hunspell.sh ├── hx.sh ├── hyperfine.sh ├── iconv.sh ├── id.sh ├── install.sh ├── ip.sh ├── ipatool.sh ├── ipinfo.sh ├── irssi.sh ├── istioctl.sh ├── jar.sh ├── java.sh ├── jdupes.sh ├── jenv.sh ├── jj.sh ├── jless.sh ├── jmeter.sh ├── jnv.sh ├── joker.sh ├── julia.sh ├── just.sh ├── k3d.sh ├── k6.sh ├── k9s.sh ├── kak.sh ├── keepassxc-cli.sh ├── keybase.sh ├── keytool.sh ├── khal.sh ├── kill.sh ├── killall.sh ├── killport.sh ├── kind.sh ├── kompose.sh ├── kops.sh ├── kotlin.sh ├── kubeadm.sh ├── kubectl.sh ├── kubectx.sh ├── kubens.sh ├── kubescape.sh ├── kustomize.sh ├── laravel.sh ├── lastb.sh ├── lazygit.sh ├── ldconfig.sh ├── lefthook.sh ├── lerna.sh ├── less.sh ├── lf.sh ├── lima.sh ├── limactl.sh ├── links.sh ├── linux │ ├── acpitool.sh │ ├── adduser.sh │ ├── alsactl.sh │ ├── alsamixer.sh │ ├── amixer.sh │ ├── apk.sh │ ├── aplay.sh │ ├── apt-cache.sh │ ├── apt-get.sh │ ├── apt.sh │ ├── aptitude.sh │ ├── arecord.sh │ ├── arp.sh │ ├── arping.sh │ ├── at.sh │ ├── attr.sh │ ├── avahi-browse.sh │ ├── avahi-resolve.sh │ ├── beep.sh │ ├── bootctl.sh │ ├── brctl.sh │ ├── brightnessctl.sh │ ├── cdrdao.sh │ ├── cdrecord.sh │ ├── cfdisk.sh │ ├── chattr.sh │ ├── choom.sh │ ├── chpasswd.sh │ ├── chrt.sh │ ├── chsh.sh │ ├── coredumpctl.sh │ ├── cryptsetup.sh │ ├── dbus-launch.sh │ ├── dbus-monitor.sh │ ├── dbus-send.sh │ ├── dconf.sh │ ├── dhclient.sh │ ├── dhcpcd.sh │ ├── dkms.sh │ ├── dmenu.sh │ ├── dmesg.sh │ ├── dnf.sh │ ├── doas.sh │ ├── dpkg-deb.sh │ ├── dpkg-reconfigure.sh │ ├── dpkg.sh │ ├── dstat.sh │ ├── emerge.sh │ ├── encfs.sh │ ├── ethtool.sh │ ├── evince.sh │ ├── fakeroot.sh │ ├── fdisk.sh │ ├── findmnt.sh │ ├── fuser.sh │ ├── fwupdmgr.sh │ ├── getfacl.sh │ ├── getfattr.sh │ ├── gpasswd.sh │ ├── groupdel.sh │ ├── groupmems.sh │ ├── groupmod.sh │ ├── hdparm.sh │ ├── hostnamectl.sh │ ├── htop.sh │ ├── hwclock.sh │ ├── hwinfo.sh │ ├── ifconfig.sh │ ├── ifdown.sh │ ├── iftop.sh │ ├── ifup.sh │ ├── ionice.sh │ ├── iostat.sh │ ├── ipset.sh │ ├── iptables.sh │ ├── iwconfig.sh │ ├── journalctl.sh │ ├── kpartx.sh │ ├── last.sh │ ├── lastlog.sh │ ├── loadkeys.sh │ ├── localectl.sh │ ├── loginctl.sh │ ├── losetup.sh │ ├── lsattr.sh │ ├── lsblk.sh │ ├── lscpu.sh │ ├── lslocks.sh │ ├── lslogins.sh │ ├── lsmem.sh │ ├── lsns.sh │ ├── lsusb.sh │ ├── ltrace.sh │ ├── machinectl.sh │ ├── mbuffer.sh │ ├── meld.sh │ ├── mii-tool.sh │ ├── mkfs.sh │ ├── mkpasswd.sh │ ├── mkswap.sh │ ├── modinfo.sh │ ├── modprobe.sh │ ├── mount.sh │ ├── mpstat.sh │ ├── netctl-auto.sh │ ├── netctl.sh │ ├── networkctl.sh │ ├── nmcli.sh │ ├── nsenter.sh │ ├── opkg.sh │ ├── pacman.sh │ ├── passwd.sh │ ├── perf.sh │ ├── pidstat.sh │ ├── ping.sh │ ├── renice.sh │ ├── resolvectl.sh │ ├── rfkill.sh │ ├── rmmod.sh │ ├── route.sh │ ├── service.sh │ ├── setfacl.sh │ ├── setfattr.sh │ ├── setpriv.sh │ ├── setsid.sh │ ├── snap.sh │ ├── ss.sh │ ├── su.sh │ ├── sulogin.sh │ ├── sv.sh │ ├── systemctl.sh │ ├── systemd-analyze.sh │ ├── systemd-nspawn.sh │ ├── timedatectl.sh │ ├── tracepath.sh │ ├── traceroute.sh │ ├── tune2fs.sh │ ├── umount.sh │ ├── unshare.sh │ ├── update-alternatives.sh │ ├── useradd.sh │ ├── userdel.sh │ ├── usermod.sh │ ├── wipefs.sh │ ├── wodim.sh │ ├── wpa_cli.sh │ ├── xdg-mime.sh │ ├── xdg-open.sh │ ├── xrandr.sh │ ├── yum.sh │ ├── zfs.sh │ ├── zpool.sh │ └── zypper.sh ├── lldb.sh ├── ln.sh ├── locale.sh ├── locust.sh ├── logrotate.sh ├── lp.sh ├── lpass.sh ├── ls.sh ├── lsof.sh ├── lua.sh ├── luarocks.sh ├── lux.sh ├── lynis.sh ├── lynx.sh ├── m4.sh ├── mackup.sh ├── macos │ ├── afplay.sh │ ├── arp.sh │ ├── asr.sh │ ├── brctl.sh │ ├── caffeinate.sh │ ├── codesign.sh │ ├── defaults.sh │ ├── diskutil.sh │ ├── dscacheutil.sh │ ├── fs_usage.sh │ ├── hdiutil.sh │ ├── launchctl.sh │ ├── m.sh │ ├── mas.sh │ ├── mdutil.sh │ ├── networkQuality.sh │ ├── networksetup.sh │ ├── nvram.sh │ ├── osascript.sh │ ├── otool.sh │ ├── pbcopy.sh │ ├── ping.sh │ ├── pkgutil.sh │ ├── pmset.sh │ ├── port.sh │ ├── shortcuts.sh │ ├── simctl.sh │ ├── softwareupdate.sh │ ├── sw_vers.sh │ ├── system_profiler.sh │ ├── tmutil.sh │ ├── xcodebuild.sh │ ├── xcodes.sh │ └── xcrun.sh ├── magick.sh ├── make.sh ├── man.sh ├── mask.sh ├── mat2.sh ├── meson.sh ├── micro.sh ├── minikube.sh ├── mitmdump.sh ├── mitmproxy.sh ├── mitmweb.sh ├── mix.sh ├── mknod.sh ├── mongocli.sh ├── mongosh.sh ├── monolith.sh ├── mosh.sh ├── most.sh ├── mpc.sh ├── mpv.sh ├── msfdb.sh ├── mtr.sh ├── mutt.sh ├── mv.sh ├── mvn.sh ├── mysql.sh ├── mysqldump.sh ├── naabu.sh ├── nali.sh ├── nano.sh ├── navi.sh ├── nc.sh ├── ncat.sh ├── ncdu.sh ├── neofetch.sh ├── neomutt.sh ├── nest.sh ├── netcat.sh ├── nethogs.sh ├── newman.sh ├── newrelic.sh ├── newsboat.sh ├── next.sh ├── nexttrace.sh ├── nfpm.sh ├── ng.sh ├── nginx.sh ├── ngrep.sh ├── ngrok.sh ├── nhost.sh ├── nice.sh ├── ninja.sh ├── nix-build.sh ├── nix-channel.sh ├── nix-collect-garbage.sh ├── nix-copy-closure.sh ├── nix-env.sh ├── nix-hash.sh ├── nix-instantiate.sh ├── nix-prefetch-url.sh ├── nix-shell.sh ├── nix-store.sh ├── nl.sh ├── nm.sh ├── nmap.sh ├── nnn.sh ├── node.sh ├── nohup.sh ├── nomad.sh ├── npm.sh ├── npx.sh ├── nu.sh ├── numfmt.sh ├── nvim.sh ├── nvm.sh ├── objdump.sh ├── ocaml.sh ├── od.sh ├── oh-my-posh.sh ├── okteto.sh ├── ollama.sh ├── onefetch.sh ├── op.sh ├── opa.sh ├── opam.sh ├── openssl.sh ├── optipng.sh ├── osqueryi.sh ├── ouch.sh ├── oxipng.sh ├── oxlint.sh ├── packer.sh ├── pactl.sh ├── pandoc.sh ├── parallel.sh ├── pass.sh ├── pastel.sh ├── patch.sh ├── pathchk.sh ├── pdfcpu.sh ├── peco.sh ├── pee.sh ├── perl.sh ├── pest.sh ├── pg_dump.sh ├── pg_dumpall.sh ├── pg_restore.sh ├── pgcli.sh ├── pgrep.sh ├── php.sh ├── phpunit.sh ├── pidof.sh ├── pinky.sh ├── pip.sh ├── pip3.sh ├── pipenv.sh ├── pipx.sh ├── pkill.sh ├── plutil.sh ├── pm2.sh ├── pmap.sh ├── pnpm.sh ├── pocketbase.sh ├── pod.sh ├── podman.sh ├── poetry.sh ├── poff.sh ├── pon.sh ├── pop.sh ├── pr.sh ├── pre-commit.sh ├── printenv.sh ├── procs.sh ├── pry.sh ├── ps.sh ├── psql.sh ├── pstree.sh ├── ptx.sh ├── pueue.sh ├── pulumi.sh ├── pv.sh ├── pwd.sh ├── pyenv.sh ├── pyright.sh ├── python.sh ├── python3.sh ├── qrencode.sh ├── quilt.sh ├── rake.sh ├── ranger.sh ├── rar.sh ├── rbenv.sh ├── rclone.sh ├── readelf.sh ├── rebar3.sh ├── recode.sh ├── redis-cli.sh ├── replibyte.sh ├── restic.sh ├── rg.sh ├── rga.sh ├── rgrep.sh ├── rhash.sh ├── rich.sh ├── rifle.sh ├── rm.sh ├── robot.sh ├── rollup.sh ├── rsync.sh ├── rtx.sh ├── ruby.sh ├── ruff.sh ├── rustc.sh ├── rustfmt.sh ├── rustup.sh ├── rye.sh ├── s3cmd.sh ├── sbt.sh ├── sc-im.sh ├── scc.sh ├── scons.sh ├── scp.sh ├── scrcpy.sh ├── screen.sh ├── scrot.sh ├── scrypt.sh ├── sdk.sh ├── sed.sh ├── serve.sh ├── sftp.sh ├── sftpgo.sh ├── sg.sh ├── sh.sh ├── shar.sh ├── shellcheck.sh ├── shfmt.sh ├── shred.sh ├── silicon.sh ├── sk.sh ├── slabtop.sh ├── slrn.sh ├── smartctl.sh ├── smbclient.sh ├── sops.sh ├── sort.sh ├── source-highlight.sh ├── sqlfluff.sh ├── ssh-agent.sh ├── ssh-copy-id.sh ├── ssh-keygen.sh ├── ssh.sh ├── ssh3.sh ├── sshfs.sh ├── stack.sh ├── starship.sh ├── stat.sh ├── stdbuf.sh ├── strace.sh ├── strings.sh ├── strip.sh ├── stripe.sh ├── stty.sh ├── subl.sh ├── sudo.sh ├── sudoedit.sh ├── supabase.sh ├── supervisorctl.sh ├── svgo.sh ├── svn.sh ├── swaks.sh ├── swift.sh ├── syft.sh ├── sysctl.sh ├── t-rec.sh ├── tail.sh ├── tar.sh ├── task.sh ├── tcpdump.sh ├── tcsh.sh ├── tee.sh ├── telnet.sh ├── terraform.sh ├── terragrunt.sh ├── terramate.sh ├── tesseract.sh ├── tex.sh ├── tfenv.sh ├── tfsec.sh ├── tidy.sh ├── tig.sh ├── time.sh ├── timeout.sh ├── tin.sh ├── tinygo.sh ├── tkn.sh ├── tldr.sh ├── tload.sh ├── tmate.sh ├── tmux.sh ├── tmuxinator.sh ├── tokei.sh ├── top.sh ├── torsocks.sh ├── touch.sh ├── tput.sh ├── trash-put.sh ├── tree.sh ├── trivy.sh ├── trunk.sh ├── tsc.sh ├── tshark.sh ├── tsx.sh ├── ttyd.sh ├── turbo.sh ├── uconv.sh ├── ug.sh ├── ugrep.sh ├── unexpand.sh ├── uniq.sh ├── unison.sh ├── unlink.sh ├── unzip.sh ├── upower.sh ├── upx.sh ├── usql.sh ├── vagrant.sh ├── vale.sh ├── valgrind.sh ├── vault.sh ├── vcpkg.sh ├── vdir.sh ├── vegeta.sh ├── vela.sh ├── vercel.sh ├── vfox.sh ├── vhs.sh ├── vi.sh ├── vim.sh ├── vimdiff.sh ├── virsh.sh ├── visudo.sh ├── vite.sh ├── vivid.sh ├── vlc.sh ├── volta.sh ├── vpnc.sh ├── vultr.sh ├── w3m.sh ├── wasm-bindgen.sh ├── wasm-opt.sh ├── wasm-tools.sh ├── wasmedge.sh ├── watch.sh ├── watchexec.sh ├── watchman.sh ├── watson.sh ├── waypoint.sh ├── wc.sh ├── webpack-cli.sh ├── wezterm.sh ├── whatis.sh ├── which.sh ├── whois.sh ├── windows │ ├── nssm.sh │ ├── scoop.sh │ ├── winget.sh │ └── wsl.sh ├── wine.sh ├── winetricks.sh ├── wireshark.sh ├── wp.sh ├── wrangler.sh ├── wrk.sh ├── xargs.sh ├── xc.sh ├── xclip.sh ├── xcodeproj.sh ├── xh.sh ├── xinput.sh ├── xmake.sh ├── xmlstarlet.sh ├── xonsh.sh ├── xsv.sh ├── xxd.sh ├── xxh128sum.sh ├── xxh32sum.sh ├── xxh64sum.sh ├── xxhsum.sh ├── yadm.sh ├── yarn.sh ├── yj.sh ├── ykman.sh ├── yomo.sh ├── you-get.sh ├── youtube-dl.sh ├── yq.sh ├── yt-dlp.sh ├── zathura.sh ├── zellij.sh ├── zig.sh ├── zip.sh ├── zipcloak.sh └── zk.sh ├── tests ├── completions │ └── __test.sh └── src │ └── __test.sh └── utils ├── _argc_utils.sh ├── _modules ├── bridge.sh ├── git.sh ├── http.sh ├── nix.sh ├── oci.sh ├── os.sh └── ssh.sh ├── _patch_utils.sh └── _patch_utils ├── dedup-options.awk ├── edit-table.awk ├── embed-help.awk ├── preprocess-cobra.awk ├── preprocess-usageonly.awk ├── preprocess-wrap.awk └── preprocess-yargs.awk /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | /bin 3 | /tmp -------------------------------------------------------------------------------- /completions/age-keygen.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -o --output Write the result to the file at path OUTPUT. 5 | # @flag -y Convert an identity file to a recipients file. 6 | 7 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/base64.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -d --decode decode data 5 | # @flag -i --ignore-garbage when decoding, ignore non-alphabet characters 6 | # @option -w --wrap wrap encoded lines after COLS character (default 76). 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg file 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/basename.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -a --multiple support multiple arguments and treat each as a NAME 5 | # @option -s --suffix remove a trailing SUFFIX; implies -a 6 | # @flag -z --zero end each output line with NUL, not newline 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg name 10 | # @arg suffix 11 | 12 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/bosh.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_choice_delegate`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _choice_delegate() { 9 | output="$(GO_FLAGS_COMPLETION=1 "${argc__args[@]}")" 10 | if [[ -z "$output" ]]; then 11 | _argc_util_comp_path 12 | return 13 | fi 14 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 15 | } 16 | 17 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/cf.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_choice_delegate`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _choice_delegate() { 9 | output="$(GO_FLAGS_COMPLETION=1 "${argc__args[@]}")" 10 | if [[ -z "$output" ]]; then 11 | _argc_util_comp_path 12 | return 13 | fi 14 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 15 | } 16 | 17 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/cksum.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --help display this help and exit 5 | # @flag --version output version information and exit 6 | # @arg file* 7 | 8 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/cmus.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option --listen listen on ADDR instead of $CMUS_SOCKET or $XDG_RUNTIME_DIR/cmus-socket ADDR is either a UNIX socket or host[:port] WARNING: using TCP/IP is insecure! 5 | # @flag --plugins list available plugins and exit 6 | # @flag --show-cursor always visible cursor 7 | # @flag --help display this help and exit 8 | # @flag --version v2.11.0 9 | 10 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/coreutils.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg command[`_choice_command`] 5 | # @arg args~[`_module_os_command_args`] 6 | 7 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 8 | 9 | _choice_command() { 10 | coreutils -h | sed -n '/^ \S/ {s/^ //p}' | tr -d '\n' | sed 's/,\s*/\n/g' 11 | } 12 | 13 | _module_os_command_args() { 14 | _argc_util_comp_subcommand 0 15 | } 16 | 17 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/dc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -e --expression evaluate expression 5 | # @option -f --file evaluate contents of file 6 | # @flag -h --help display this help and exit 7 | # @flag -V --version output version information and exit 8 | # @arg file* 9 | 10 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/dirname.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -z --zero end each output line with NUL, not newline 5 | # @flag --help display this help and exit 6 | # @flag --version output version information and exit 7 | # @arg files* 8 | 9 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/dotnet.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_choice_delegate`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _choice_delegate() { 9 | line="${argc__args[*]}" 10 | output="$("${argc__args[0]}" complete --position "${#line}" "$line")" 11 | if [[ -z "$output" ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/earthly.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_module_bridge_compline`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _module_bridge_compline() { 9 | line="${argc__args[*]}" 10 | output="$(COMP_LINE="$line" COMP_POINT="${#line}" "${argc__args[0]}")" 11 | if [[ -z "$output" ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/expand.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -i --initial do not convert tabs after non blanks 5 | # @option -t --tabs use comma separated list of tab positions The last specified position can be prefixed with '/' to specify a tab size to use after the last explicitly specified tab stop. 6 | # @flag --help display this help and exit 7 | # @flag --version output version information and exit 8 | # @arg file* 9 | 10 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/fc-cat.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @meta combine-shorts 5 | # @flag -r --recurse recurse into subdirectories 6 | # @flag -v --verbose be verbose 7 | # @flag -V --version display font config version and exit 8 | # @flag -h --help display this help and exit 9 | # @arg paths* 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/fold.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -b --bytes count bytes rather than columns 5 | # @flag -s --spaces break at spaces 6 | # @option -w --width use WIDTH columns instead of 80 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg file* 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/fx.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -h --help print help 5 | # @flag -v --version print version 6 | # @flag --themes print themes 7 | # @option --comp print completion script 8 | # @flag -r --raw treat input as a raw string 9 | # @flag -s --slurp read all inputs into an array 10 | # @flag --yaml parse input as YAML 11 | # @arg file 12 | # @arg selector 13 | 14 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/groups.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --help display this help and exit 5 | # @flag --version output version information and exit 6 | # @arg users*[`_module_os_user`] 7 | 8 | _module_os_user() { 9 | command cat /etc/passwd | gawk -F: '{split($5,descs,","); print $1 "\t" descs[1]}' 10 | } 11 | 12 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/ipinfo.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_module_bridge_compline`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _module_bridge_compline() { 9 | line="${argc__args[*]}" 10 | output="$(COMP_LINE="$line" COMP_POINT="${#line}" "${argc__args[0]}")" 11 | if [[ -z "$output" ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/jenv.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_choice_delegate`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _choice_delegate() { 9 | if _argc_util_has_path_prefix; then 10 | _argc_util_comp_path 11 | return 12 | fi 13 | 14 | len="${#argc__args[@]}" 15 | if [[ "$len" -eq 2 ]]; then 16 | jenv commands 17 | else 18 | jenv completions "${argc__args[@]:1}" 19 | fi 20 | } 21 | 22 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/kubens.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -c --current show the current namespace 5 | # @flag -h --help show this message 6 | # @flag -V --version show version 7 | # @arg name[`_choice_name`] 8 | 9 | _choice_name() { 10 | echo - 11 | _choice_ns 12 | } 13 | 14 | _choice_ns() { 15 | kubens 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/ldd.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --help print this help and exit 5 | # @flag --version print version information and exit 6 | # @flag -d --data-relocs process data relocations 7 | # @flag -r --function-relocs process data and function relocations 8 | # @flag -u --unused print unused direct dependencies 9 | # @flag -v --verbose print all information 10 | # @arg file* 11 | 12 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/link.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --help display this help and exit 5 | # @flag --version output version information and exit 6 | # @arg file1 7 | # @arg file2 8 | 9 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/linux/sulogin.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -p --login-shell start a login shell 5 | # @option -t --timeout max time to wait for a password (default: no limit) 6 | # @flag -e --force examine password files directly if getpwnam(3) fails 7 | # @flag -h --help display this help 8 | # @flag -V --version display version 9 | # @arg file 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/linux/tracepath.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -4 use IPv4 5 | # @flag -6 use IPv6 6 | # @flag -b print both name and ip 7 | # @option -l use packet 8 | # @option -m use maximum 9 | # @flag -n no dns name resolution 10 | # @option -p use destination 11 | # @flag -V print version and exit 12 | # @arg dns-ip! 13 | 14 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/linux/xdg-open.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --help Show command synopsis. 5 | # @flag --manual Show this manual page. 6 | # @flag --version Show the xdg-utils version information. 7 | # @arg file-url 8 | 9 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/lua.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -e execute string 'stat' 5 | # @flag -i enter interactive mode after executing 'script' 6 | # @option -l require library 'mod' into global 'g' 7 | # @flag -v show version information 8 | # @flag -E ignore environment variables 9 | # @flag -W turn warnings on 10 | # @arg file-lua 11 | # @arg args* 12 | 13 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/macos/pbcopy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -pboard[general|ruler|find|font] specifies which pasteboard to copy to or paste from. 5 | # @option -Prefer[txt|rtf|ps] tells pbpaste what type of data to look for in the pasteboard first. 6 | 7 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/macos/sw_vers.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --productName Print only the value of the ProductName property. 5 | # @flag --productVersion Print only the value of the ProductVersion property. 6 | # @flag --productVersionExtra Print only the value of the ProductVersionExtra property. 7 | # @flag --buildVersion Print only the value of the BuildVersion property. 8 | 9 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/mkfifo.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -m --mode set file permission bits to MODE, not a=rw - umask 5 | # @flag -Z set the SELinux security context to default type 6 | # @option --context like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg name* 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/paste.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -d --delimiters reuse characters from LIST instead of TABs 5 | # @flag -s --serial paste one file at a time instead of in parallel 6 | # @flag -z --zero-terminated line delimiter is NUL, not newline 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg file* 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/pathchk.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -p check for most POSIX systems 5 | # @flag -P check for empty names and leading "-" 6 | # @flag --portability check for all POSIX systems (equivalent to -p -P) 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg files* 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/poff.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -r Cause pppd to drop the line and redial. 5 | # @flag -d Toggle the state of pppd's debug option. 6 | # @flag -c Cause pppd to renegotiate compression. 7 | # @flag -a Stop all pppd's. 8 | # @flag -h Print this help summary and exit. 9 | # @flag -v Print version and exit. 10 | # @arg provider[`_choice_provider`] 11 | 12 | _choice_provider() { 13 | find /etc/ppp/peers/ -type f -printf '%f\n' 14 | } 15 | 16 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/pon.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -q --quick pppd hangs up after all ip-up scripts are run 5 | # @arg provider[`_choice_provider`] 6 | 7 | _choice_provider() { 8 | find /etc/ppp/peers/ -type f -printf '%f\n' 9 | } 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/printenv.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -0 --null end each output line with NUL, not newline 5 | # @flag --help display this help and exit 6 | # @flag --version output version information and exit 7 | # @arg variable*[`_choice_env_var`] 8 | 9 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 10 | 11 | _choice_env_var() { 12 | env | _argc_util_transform format== 13 | } 14 | 15 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/pwd.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -L print the value of $PWD if it names the current working directory 5 | # @flag -P print the physical directory, without any symbolic links 6 | 7 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/seq.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -f --format use printf style floating-point FORMAT 5 | # @option -s --separator use STRING to separate numbers (default: \n) 6 | # @flag -w --equal-width equalize width by padding with leading zeroes 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg last 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/stty.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -a --all print all current settings in human-readable form 5 | # @flag -g --save print all current settings in a stty-readable form 6 | # @option -F --file open and use the specified DEVICE instead of stdin 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg file 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/sum.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -r use BSD sum algorithm, use 1K blocks 5 | # @flag -s --sysv use System V sum algorithm, use 512 bytes blocks 6 | # @flag --help display this help and exit 7 | # @flag --version output version information and exit 8 | # @arg file* 9 | 10 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/sync.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -d --data sync only file data, no unneeded metadata 5 | # @flag -f --file-system sync the file systems that contain the files 6 | # @flag --help display this help and exit 7 | # @flag --version output version information and exit 8 | # @arg file* 9 | 10 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/tac.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -b --before attach the separator before instead of after 5 | # @flag -r --regex interpret the separator as a regular expression 6 | # @option -s --separator use STRING as the separator instead of newline 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | # @arg file* 10 | 11 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/tig.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -C Start in 5 | # @arg cmd![`_choice_cmd`] 6 | # @arg args~[`_choice_args`] 7 | 8 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 9 | 10 | _choice_cmd() { 11 | tig --help | sed -n 's/^\s*or: tig \([a-z]\S\+\).*/\1/p' 12 | } 13 | 14 | _choice_args() { 15 | _argc_util_comp_subcommand 0 git 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/tload.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @option -d --delay update delay in seconds 5 | # @option -s --scale vertical scale 6 | # @flag -h --help display this help and exit 7 | # @flag -V --version output version information and exit 8 | # @arg tty[`_module_os_tty`] 9 | 10 | _module_os_tty() { 11 | command ps aux | gawk '{ if ($7 != "?" && NR > 1) {print $7 "\t" $1} }' 12 | } 13 | 14 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/tmuxinator.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_choice_delegate`] 5 | 6 | _choice_delegate() { 7 | len="${#argc__args[@]}" 8 | if [[ "$len" -eq 2 ]]; then 9 | tmuxinator commands 10 | tmuxinator completions start 11 | else 12 | tmuxinator completions "${argc__args[@]:1:$((len - 2))}" 13 | fi 14 | } 15 | 16 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/tty.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -s print nothing, only return an exit status 5 | # @flag --silent print nothing, only return an exit status 6 | # @flag --quiet print nothing, only return an exit status 7 | # @flag --help display this help and exit 8 | # @flag --version output version information and exit 9 | 10 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/unlink.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --help display this help and exit 5 | # @flag --version output version information and exit 6 | # @arg file 7 | 8 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/uptime.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag -p --pretty show uptime in pretty format 5 | # @flag -h --help display this help and exit 6 | # @flag -s --since system up since 7 | # @flag -V --version output version information and exit 8 | 9 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/visudo.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @meta combine-shorts 5 | # @flag -c --check check-only mode 6 | # @option -f --file specify sudoers file location 7 | # @flag -h --help display help message and exit 8 | # @flag -q --quiet less verbose (quiet) syntax error messages 9 | # @flag -s --strict strict syntax checking 10 | # @flag -V --version display version information and exit 11 | 12 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/watchgnupg.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @flag --tcp listen on a TCP port and optionally on a local socket 5 | # @flag --force delete an already existing socket file 6 | # @flag --verbose enable extra informational output 7 | # @flag --time-only print only the time; not a full timestamp 8 | # @flag --version print version of the program and exit 9 | # @flag --help display this help and exit 10 | # @arg socketname 11 | 12 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/wp.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_choice_delegate`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _choice_delegate() { 9 | line="${argc__args[*]}" 10 | output="$(wp cli completions --line="$line" --point="${#line}")" 11 | if [[ -z "$output" ]] || [[ "$output" =~ \\s* ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/xc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_module_bridge_compline`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _module_bridge_compline() { 9 | line="${argc__args[*]}" 10 | output="$(COMP_LINE="$line" COMP_POINT="${#line}" "${argc__args[0]}")" 11 | if [[ -z "$output" ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /completions/xmake.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Automatic generated, DON'T MODIFY IT. 3 | 4 | # @arg words~[`_choice_delegate`] 5 | 6 | . "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh" 7 | 8 | _choice_delegate() { 9 | line="${argc__args[*]}" 10 | output="$(XMAKE_SKIP_HISTORY=1 XMAKE_ROOT=y xmake lua private.utils.complete 0 nospace "$line")" 11 | if [[ -z "$output" ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | 18 | command eval "$(argc --argc-eval "$0" "$@")" -------------------------------------------------------------------------------- /src/7za.sh: -------------------------------------------------------------------------------- 1 | 7z.sh -------------------------------------------------------------------------------- /src/7zr.sh: -------------------------------------------------------------------------------- 1 | 7z.sh -------------------------------------------------------------------------------- /src/Rscript.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--options' \ 4 | ';;' \ 5 | '-e;;R expression to run' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/a2ps.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | \ 3 | sed \ 4 | -e '/^\s*--list=defaults/ d' \ 5 | -e '/^\s*-1, -2/ s/ -2, \.\.\.,//' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options \ 11 | '--file-align;[fill|rank|page|sheet|]' \ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/ab.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-H;[`_module_http_header`]' \ 4 | '-T;[`_module_http_media_type`]' \ 5 | '-m;[`_module_http_method`]' \ 6 | | \ 7 | _patch_table_edit_arguments ';;' 'url' 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/abcde.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | -------------------------------------------------------------------------------- /src/abook.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^\s*-/ s/\s*)' \ 4 | '--output()' \ 5 | '--recipient()' \ 6 | '--recipients-file()' \ 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/airflow.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/amplify.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "amplify uninstall" ]]; then 3 | :; 4 | else 5 | $@ --help 6 | fi 7 | } 8 | -------------------------------------------------------------------------------- /src/ansible-console.sh: -------------------------------------------------------------------------------- 1 | ansible.sh -------------------------------------------------------------------------------- /src/ansible-lint.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--enable-list;*,[`_choice_rule`]' \ 4 | '--fix;*,[`_choice_rule`]' \ 5 | '--list-rules; ;' \ 6 | '--skip-list;*,[`_choice_rule`]' \ 7 | '--warn-list;*,[`_choice_rule`]' \ 8 | | \ 9 | _patch_table_edit_arguments ';;' 'paths...' 10 | } 11 | 12 | _choice_rule() { 13 | ansible-lint --list-rules | \ 14 | sed -n 's/^\s\+\x1b\S\+\x1b\\\(\S\+\)\x1b\]8;;\x1b\\\s\+\(.*\)\x1b\[2m.*/\1\t\2/p' 15 | } 16 | -------------------------------------------------------------------------------- /src/ansible-vault.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^positional arguments:/,+1 {N;s/\n\s*\x7b.*$//;s/^positional arguments:$/Commands:/;}' 3 | } 4 | -------------------------------------------------------------------------------- /src/ant.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h | sed -e 's/-\(\S\+\)\s\+\(\S\)/-\1 \2/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'target;*[`_choice_target`]' 7 | } 8 | 9 | _choice_target() { 10 | if [[ -f build.xml ]]; then 11 | yq -p xml -o yaml '.project.target[].["+@name"]' build.xml 12 | fi 13 | } 14 | -------------------------------------------------------------------------------- /src/apachectl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h 2>&1 | \ 3 | sed \ 4 | -e '/^\s*-t -D/ d' \ 5 | -e 's/: / /' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_arguments ';;' 'action;[start|stop|restart|graceful|graceful-stop|configtest|status|fullstatus|help]' 11 | } 12 | -------------------------------------------------------------------------------- /src/apropos.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/argo.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/aria2c.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | sed 's/\[true|false\]/{true|false}/' 3 | } 4 | -------------------------------------------------------------------------------- /src/asciinema.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/positional arguments:/,+1 c\Commands:' 3 | } 4 | 5 | _patch_table() { 6 | if [[ "$*" == "asciinema" ]]; then 7 | _patch_table_edit_arguments ';;' 8 | else 9 | cat 10 | fi 11 | } 12 | -------------------------------------------------------------------------------- /src/assh.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/atlas.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/augtool.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -eq 1 ]]; then 3 | _patch_help_run_man $@ 4 | else 5 | _patch_help_run_man $1 | \ 6 | sed -n "/^COMMANDS/,/^[A-Z]/ {/^\s*$2\( \|$\)/p}" | \ 7 | sed \ 8 | -e "s/^\s*/Usage: $1 /" \ 9 | 10 | fi 11 | } 12 | -------------------------------------------------------------------------------- /src/autocorrect.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--config()' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/awk.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/-\(\w\).*\t\+\(--.*\)/-\1, \2/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options '--lint;[fatal|invalid|no-ext]' | \ 7 | _patch_table_edit_arguments ';;' 'files...' 8 | } 9 | -------------------------------------------------------------------------------- /src/aws.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | argc__args[0]="aws_completer" 11 | _module_bridge_argcomplete 12 | } 13 | -------------------------------------------------------------------------------- /src/az.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/bandwhich.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--interface;[`_module_os_network_interface`]' 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/bash.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed -n '/^OPTIONS/,/ARGUMENTS/ {//!p}' | \ 4 | sed \ 5 | '-e s/\[-+\]/-/' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options \ 11 | '-c;[`_module_os_command`]' \ 12 | | \ 13 | _patch_table_edit_arguments ';;' 'file' 'args...' 14 | } 15 | -------------------------------------------------------------------------------- /src/bat.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/\*\(\S\+\)\*/\1/g' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--language;[`_choice_language`]' \ 8 | '--theme;[`_choice_theme`]' \ 9 | 10 | } 11 | 12 | _choice_language() { 13 | bat --list-languages | cut -d: -f1 14 | } 15 | 16 | _choice_theme() { 17 | bat --list-themes | cat 18 | } 19 | -------------------------------------------------------------------------------- /src/bc.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/binwalk.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'files...' 3 | } 4 | -------------------------------------------------------------------------------- /src/black.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'SRC_FILE' 3 | } 4 | -------------------------------------------------------------------------------- /src/bosh.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | output="$(GO_FLAGS_COMPLETION=1 "${argc__args[@]}")" 11 | if [[ -z "$output" ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | -------------------------------------------------------------------------------- /src/boundary.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/bpython.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'file' 'args...' 3 | } 4 | -------------------------------------------------------------------------------- /src/browser-sync.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "browser-sync" ]]; then 3 | $@ --help 2>&1 | sed '/^Commands:/,/^\s*$/ s/browser-sync //' | _patch_help_preprocess_yargs 4 | else 5 | $@ --help 2>&1 | _patch_help_preprocess_yargs 6 | fi 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_detect_value_type | \ 11 | _patch_table_edit_options \ 12 | '--cwd();;Working directory' \ 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/btm.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--color;[default|default-light|gruvbox|gruvbox-light|nord|nord-light]' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/buf.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/buku.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | 3 | sed \ 4 | '/^\s*-/ s/\[\.\.\.\]/[value...]/' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_options \ 10 | '--add();*,' \ 11 | '--import;[html|xbel|json|md|org|db]' \ 12 | '--stag();*' \ 13 | '--tag();*' \ 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/bunzip2.sh: -------------------------------------------------------------------------------- 1 | bzip2.sh -------------------------------------------------------------------------------- /src/bws.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | 'project_id;[`_choice_project_id`]' \ 4 | 'secret_id;[`_choice_secret_id`]' \ 5 | 6 | } 7 | 8 | _choice_project_id() { 9 | bws project list --output json | yq '.[] | .id + " " + .name' 10 | } 11 | 12 | _choice_secret_id() { 13 | bws secret list --output json | yq '.[] | .id + " " + .key' 14 | } 15 | -------------------------------------------------------------------------------- /src/bzcat.sh: -------------------------------------------------------------------------------- 1 | bzip2.sh -------------------------------------------------------------------------------- /src/bzip2.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | sed 's/-1 \.\. -9/-1, -9/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_arguments ';;' 'file:.tbz,.tbz2,.bz,bz2' 8 | } 9 | -------------------------------------------------------------------------------- /src/c++.sh: -------------------------------------------------------------------------------- 1 | gcc.sh -------------------------------------------------------------------------------- /src/caddy.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '0,/^Usage:/ {//!d}' 3 | 4 | } 5 | 6 | _patch_table() { 7 | _patch_table_detect_value_type 8 | } 9 | -------------------------------------------------------------------------------- /src/cc.sh: -------------------------------------------------------------------------------- 1 | gcc.sh -------------------------------------------------------------------------------- /src/certtool.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --more-help 3 | } 4 | -------------------------------------------------------------------------------- /src/cf.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | output="$(GO_FLAGS_COMPLETION=1 "${argc__args[@]}")" 11 | if [[ -z "$output" ]]; then 12 | _argc_util_comp_path 13 | return 14 | fi 15 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 16 | } 17 | -------------------------------------------------------------------------------- /src/chezmoi.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/chgrp.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'group;[`_choice_group_value`]' 3 | } 4 | 5 | _choice_group_value() { 6 | if [[ -n "$argc_reference" ]]; then 7 | _argc_util_comp_path 8 | else 9 | _module_os_group 10 | fi 11 | } 12 | -------------------------------------------------------------------------------- /src/choose.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--input()' 3 | } 4 | -------------------------------------------------------------------------------- /src/chroma.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--formatter;[`_choice_formatter`]' \ 4 | '--lexer;[`_choice_lexer`]' \ 5 | '--style;[`_choice_style`]' \ 6 | 7 | } 8 | 9 | _choice_lexer() { 10 | chroma --list | sed -n 's/^\s\+aliases: \(.*\)/\1/p' | tr ' ' '\n' 11 | } 12 | 13 | _choice_style() { 14 | chroma --list | sed -n 's/^styles: \(.*\)/\1/p' | tr ' ' '\n' 15 | } 16 | 17 | _choice_formatter() { 18 | chroma --list | sed -n 's/^formatters: \(.*\)/\1/p' | tr ' ' '\n' 19 | } 20 | -------------------------------------------------------------------------------- /src/clang++.sh: -------------------------------------------------------------------------------- 1 | clang.sh -------------------------------------------------------------------------------- /src/clang.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^\s*-###/ d' \ 5 | -e '/^\s*-stdlib++-isystem/ d' \ 6 | -e '/^\s*-I- / s/-I-/-I--/' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_dedup_options \ 12 | ';;' \ 13 | '-flto' \ 14 | '-mabi' \ 15 | '-mcmodel' \ 16 | '-ObjC' \ 17 | '-Xopenmp-target' \ 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/clib.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _common_edit() { 3 | sed 's/^ //' 4 | } 5 | if [[ "$*" == "clib" ]]; then 6 | $@ --help | _common_edit 7 | elif [[ "$*" == "clib build" ]]; then 8 | $@ --help | _common_edit | sed 's/-C, --clean/ --clean/' 9 | else 10 | $@ --help | _common_edit 11 | fi 12 | } 13 | -------------------------------------------------------------------------------- /src/clj.sh: -------------------------------------------------------------------------------- 1 | clojure.sh -------------------------------------------------------------------------------- /src/cmark.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments 'file(file:.md)' 7 | } 8 | -------------------------------------------------------------------------------- /src/code-insiders.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | if [[ "$*" == "code-insiders" ]]; then 3 | _patch_table_edit_arguments ';;' 'paths...' 4 | else 5 | cat 6 | fi 7 | } 8 | -------------------------------------------------------------------------------- /src/code.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' '[paths...]' 3 | } 4 | -------------------------------------------------------------------------------- /src/coffee.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--eval()' \ 4 | '--join()' \ 5 | '--nodejs()' \ 6 | '--output()' \ 7 | '--require()' \ 8 | | \ 9 | _patch_table_edit_arguments ';;' 'script(file:.coffee)' 'args...' 10 | } 11 | -------------------------------------------------------------------------------- /src/conky.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--alignment;[`_choice_alignment`];text alignment on screen' \ 4 | 5 | } 6 | 7 | _choice_alignment() { 8 | _argc_util_mode_kv _ 9 | if [[ -z "$argc__kv_prefix" ]]; then 10 | printf "%s_\0\n" top bottom middle 11 | else 12 | printf "%s\n" left right middle 13 | fi 14 | } 15 | -------------------------------------------------------------------------------- /src/consul.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/coreutils.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments \ 7 | ';;' \ 8 | 'command;[`_choice_command`]' \ 9 | 'args;~[`_module_os_command_args`]' \ 10 | 11 | } 12 | 13 | _choice_command() { 14 | coreutils -h | sed -n '/^ \S/ {s/^ //p}' | tr -d '\n' | sed 's/,\s*/\n/g' 15 | } 16 | -------------------------------------------------------------------------------- /src/cosign.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/croc.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | if [[ "$*" == "croc" ]]; then 3 | _patch_table_edit_arguments ';;' 4 | 5 | elif [[ "$*" == "croc send" ]]; then 6 | _patch_table_edit_arguments ';;' 'paths...' 7 | 8 | else 9 | cat 10 | fi 11 | } 12 | -------------------------------------------------------------------------------- /src/crontab.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | cat <<-'EOF' | _patch_help_embed_help $@ 3 | usage: crontab [options] file 4 | Options: 5 | -u specific user 6 | -e edit user's crontab 7 | -l list user's crontab 8 | -r delete user's crontab 9 | -i prompt before deleting user's crontab 10 | EOF 11 | } 12 | 13 | _patch_table() { 14 | _patch_table_edit_options \ 15 | '-u;[`_module_os_user`]' \ 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/cscope.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/cssh.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/\x27\(<[^>]\+>\)\x27/\1/g' \ 5 | -e '/^Arguments/,+1 cArguments' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options \ 11 | '--debug();*[`_choice_debug`]' \ 12 | '--evaluate;[`_module_ssh_host`]' \ 13 | | \ 14 | _patch_table_edit_arguments ';;' 'args;*[`_module_ssh_host`]' 15 | 16 | } 17 | 18 | _choice_debug() { 19 | seq 0 9 20 | } 21 | -------------------------------------------------------------------------------- /src/ctop.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-connector;[docker|runc]' \ 4 | '-s;[`_choice_sort`]' \ 5 | 6 | } 7 | 8 | _choice_sort() { 9 | printf "%s\n" id name cpu mem net pids io state uptime 10 | } 11 | -------------------------------------------------------------------------------- /src/cwebp.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -longhelp | \ 3 | sed \ 4 | -e '/^\s*-/ s/ \.\+ / /' \ 5 | -e '/^\s*-/ s| / |, |' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_dedup_options \ 11 | ';;' \ 12 | '-preset' \ 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/darktable-cli.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'paths...' 7 | } 8 | -------------------------------------------------------------------------------- /src/darktable.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--library()' \ 8 | '--noiseprofiles()' \ 9 | '-d;[`_choice_debug_option`]' \ 10 | | \ 11 | _patch_table_edit_arguments ';;' 'paths...' 12 | } 13 | 14 | _choice_debug_option() { 15 | printf "%s\n" all cache camctl camsupport control dev fswatch input lighttable lua masks memory nan opencl perf pwstorage print sql ioporder imageio 16 | } 17 | -------------------------------------------------------------------------------- /src/dbmate.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/\[ --\S\+ [^]]\+\]//' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_detect_value_type 7 | } 8 | -------------------------------------------------------------------------------- /src/dbt.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^\s*-/ s| / |, |' 3 | } 4 | -------------------------------------------------------------------------------- /src/ddev.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/ddgr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | \ 3 | sed \ 4 | '/^omniprompt keys:/,/^\s*$/ d' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/ddosify.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/delta.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | _patch_help_strip_ansi | sed -e '/^GIT CONFIG/, $ d' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--inspect-raw-lines;[true|false]' \ 8 | '--pager;[`_module_os_command`]' \ 9 | '--syntax-theme;[`_choice_theme`]' \ 10 | 11 | } 12 | 13 | _choice_theme() { 14 | delta --list-syntax-themes | sed 's/^\w\+\s\+//' 15 | } 16 | -------------------------------------------------------------------------------- /src/devbox.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/diff.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--color;[auto|never|always]' 3 | } 4 | -------------------------------------------------------------------------------- /src/difft.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--override;*[`_choice_override`]' 3 | } 4 | 5 | _choice_override() { 6 | _argc_util_mode_kv : 7 | if [[ -n "$argc__kv_prefix" ]]; then 8 | _choice_language 9 | fi 10 | } 11 | 12 | _choice_language() { 13 | difft --list-languages | sed -n 's/^\(\S\+\)$/\1/p' 14 | } 15 | -------------------------------------------------------------------------------- /src/dir.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options '--indicator-style' | \ 3 | _patch_table_edit_options \ 4 | '--color;[`_choice_color`]' \ 5 | '--time;[`_choice_time`]' \ 6 | 7 | } 8 | 9 | _choice_color() { 10 | printf "%s\n" auto never always 11 | } 12 | 13 | _choice_time() { 14 | printf "%s\n" full-iso long-iso iso locale 15 | } 16 | -------------------------------------------------------------------------------- /src/dirname.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'FILES...' 3 | } 4 | -------------------------------------------------------------------------------- /src/dive.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^Available Commands:/,/^$/ d' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--ci-config()' \ 8 | '--config()' \ 9 | '--json()' \ 10 | '--source;[docker|podman|docker-archive]' \ 11 | | \ 12 | _patch_table_edit_arguments 'image;[`_choice_image`]' 13 | 14 | } 15 | 16 | _choice_image() { 17 | docker image ls --format '{{.Repository}}:{{.Tag}}' | sed 's/:/=/' | _argc_util_comp_kv : 18 | } 19 | -------------------------------------------------------------------------------- /src/dnsmasq.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--dhcp-scriptuser;[`_module_os_user`]' \ 4 | '--except-interface;[`_choice_net_device`]' \ 5 | '--group;[`_module_os_group`]' \ 6 | '--interface;[`_choice_net_device`]' \ 7 | '--user;[`_module_os_user`]' \ 8 | 9 | } 10 | 11 | _choice_net_device() { 12 | ifconfig | gawk '/^[0-9a-zA-Z]/ { split($0, arr, ":"); print arr[1] }' 13 | } 14 | -------------------------------------------------------------------------------- /src/doctl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/doppler.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/dotnet.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | line="${argc__args[*]}" 11 | output="$("${argc__args[0]}" complete --position "${#line}" "$line")" 12 | if [[ -z "$output" ]]; then 13 | _argc_util_comp_path 14 | return 15 | fi 16 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 17 | } 18 | -------------------------------------------------------------------------------- /src/drill.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--benchmark()' \ 4 | '--compare()' \ 5 | '--report()' \ 6 | '--skip-tags;*[`_choice_tag`]' \ 7 | '--tags;*[`_choice_tag`]' \ 8 | | \ 9 | _patch_table_edit_arguments ';;' 10 | } 11 | 12 | _choice_tag() { 13 | if [[ -f "$argc_benchmark" ]]; then 14 | cat "$argc_benchmark" | yq -p yaml '.. | select(has("tags")) | .tags[]' 15 | fi 16 | } 17 | -------------------------------------------------------------------------------- /src/dropbox.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -eq 1 ]]; then 3 | dropbox help | \ 4 | sed \ 5 | -e '/^commands:/,+3 c\Commands:' \ 6 | 7 | elif [[ $# -eq 2 ]]; then 8 | _patch_help_run_help_subcmd $@ 9 | 10 | fi 11 | } 12 | -------------------------------------------------------------------------------- /src/du.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--time;[`_choice_time`]' \ 4 | '--time-style;[`_choice_time_style`]' \ 5 | 6 | } 7 | 8 | _choice_time() { 9 | printf "%s\n" access atime ctime status use 10 | } 11 | 12 | _choice_time_style() { 13 | printf "%s\n" full-iso long-iso iso 14 | } 15 | -------------------------------------------------------------------------------- /src/dua.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'input(paths...)' 3 | } 4 | -------------------------------------------------------------------------------- /src/duf.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | sed 's/ (default.*$//' 3 | } 4 | -------------------------------------------------------------------------------- /src/dust.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' '...' 3 | } 4 | -------------------------------------------------------------------------------- /src/earthly.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_compline`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/efibootmgr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^\s*-/ s/ | -/, -/g' \ 5 | -e 's/--delete-bootnum/--delete-bootnum /' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options \ 11 | '--bootnext;[`_choice_boot`]' \ 12 | '--bootnum;[`_choice_boot`]' \ 13 | 14 | } 15 | 16 | _choice_boot() { 17 | efibootmgr | sed -n 's/Boot\(\S\+\)\* \(.*\)$/\1\t\2/p' 18 | } 19 | -------------------------------------------------------------------------------- /src/egrep.sh: -------------------------------------------------------------------------------- 1 | grep.sh -------------------------------------------------------------------------------- /src/elvish.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-db()' \ 4 | '-log()' \ 5 | '-rc()' \ 6 | '-sock()' \ 7 | | \ 8 | _patch_table_edit_arguments ';;' 'file' 'args...' 9 | } 10 | -------------------------------------------------------------------------------- /src/enscript.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/entr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_commands ';;' | \ 8 | _patch_table_edit_arguments \ 9 | ';;' \ 10 | 'command;[`_module_os_command`]' \ 11 | 'args;~[`_module_os_command_args`]' \ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/env.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--block-signal;[`_module_os_signal`]' \ 4 | '--default-signal;[`_module_os_signal`]' \ 5 | '--ignore-signal;[`_module_os_signal`]' \ 6 | '--unset;[`_choice_env_var`]' \ 7 | | \ 8 | _patch_table_edit_arguments ';;' 9 | } 10 | 11 | _choice_env_var() { 12 | env | _argc_util_transform format== 13 | } 14 | -------------------------------------------------------------------------------- /src/erd.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h 3 | } 4 | -------------------------------------------------------------------------------- /src/espeak.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/="\(<\S\+>\)"/=\1/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--voices;[`_choice_lang`]' \ 8 | '-v;[`_choice_voice`]' \ 9 | 10 | } 11 | 12 | _choice_voice() { 13 | espeak --voices | gawk '{if(NR>1){ print $4}}' 14 | } 15 | 16 | _choice_lang() { 17 | espeak --voices | gawk '{if(NR>1){ print $2}}' 18 | } 19 | -------------------------------------------------------------------------------- /src/exa.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/--colo\[u\]r/--color/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--sort;[name|Name|size|extension|Extension|modified|changed|accessed|created|inode|type|none]' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/expand.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options '--tabs' 3 | } 4 | -------------------------------------------------------------------------------- /src/fab.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--hosts;*,' \ 4 | '--list-format;[default|nested|json]' \ 5 | '--print-completion-script;[bash|zsh|fish]' \ 6 | '--search-root(DIR)' \ 7 | '--ssh-config(FILE)' \ 8 | | \ 9 | _patch_table_edit_arguments ';;' 'tasks;*[`_choice_task`]' 10 | 11 | } 12 | 13 | _choice_task() { 14 | fab -l | sed -n 's/^ \(\S\+\)\s*\(.*\)$/\1\t\2/p' 15 | } 16 | -------------------------------------------------------------------------------- /src/fc-cache.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_arguments ';;' 'dirs...' 4 | } 5 | -------------------------------------------------------------------------------- /src/fc-cat.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_arguments ';;' 'paths...' 4 | } 5 | -------------------------------------------------------------------------------- /src/fc-list.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/fd.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--exec(...)' \ 4 | '--exec-batch(...)' \ 5 | '--type;*[`_choice_type`];Filter the search' \ 6 | 7 | } 8 | 9 | _choice_type() { 10 | cat <<-'EOF' 11 | file regular files 12 | directory directories 13 | symlink symbolic links 14 | socket socket 15 | pipe named pipe (FIFO) 16 | executable executables 17 | empty empty files or directories 18 | EOF 19 | } 20 | -------------------------------------------------------------------------------- /src/feh.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | -e 's/-|, //' \ 5 | -e 's/-˜/-~/' \ 6 | -e 's/-ˆ/-^/' \ 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/feroxbuster.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h | \ 3 | sed \ 4 | -e 's/, i.e.[^)]\+)/)/' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/fgrep.sh: -------------------------------------------------------------------------------- 1 | grep.sh -------------------------------------------------------------------------------- /src/firefox.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'paths...' 3 | } 4 | -------------------------------------------------------------------------------- /src/fish.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man fish 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'file' 'args...' 7 | } 8 | -------------------------------------------------------------------------------- /src/flac.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | -e '/^\s*-/ s/#//g' \ 5 | -e '/^\s*-/ s/\.\.[A-Za-z0-9-]\+//g' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_arguments ';;' 11 | } 12 | -------------------------------------------------------------------------------- /src/flamegraph.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--cmd;[`_module_os_command`]' \ 4 | '--pid;[`_module_os_pid`]' \ 5 | | \ 6 | _patch_table_edit_arguments \ 7 | ';;' \ 8 | 'command;[`_module_os_command`]' \ 9 | 'args;~[`_module_os_command_args`]' \ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/fortune.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | -e '/^ Options/,+2 cOptions' \ 5 | -e '/^ -\S\+/ {N;s/\n//}' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_add_metadata combine-shorts | \ 11 | _patch_table_edit_arguments ';;' 'paths...' 12 | } 13 | -------------------------------------------------------------------------------- /src/fq.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | '/^\s*-/ s/,-/, -/' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_options \ 10 | '--decode;[`_choice_decode`]' \ 11 | '--option;[`_choice_option`]' \ 12 | 13 | } 14 | 15 | _choice_decode() { 16 | fq --help formats | sed 's/\s\+\(.*\)/\t\1/' 17 | } 18 | 19 | _choice_option() { 20 | fq --help options | sed 's/\s\+\(.*\)/\t\1/' 21 | } 22 | -------------------------------------------------------------------------------- /src/ftp.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | echo "Usage: ftp [option] host" 3 | _patch_help_run_man ftp | \ 4 | sed -n '/^DESCRIPTION/, /^ ! \[command \[args\]\]/ {//!p}' 5 | } 6 | 7 | _patch_table() { 8 | _patch_table_edit_options '-N()' 9 | } 10 | -------------------------------------------------------------------------------- /src/fx.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'file' 'selector' 3 | } 4 | -------------------------------------------------------------------------------- /src/fzf.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/+s, //' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--border;[rounded|sharp|bold|block|thinblock|double|horizontal|vertical|top|bottom|left|right|none]' \ 8 | '--color;[dark|light|16|bw]' \ 9 | '--info;[default|right|hidden|inline|inline-right]' \ 10 | ';;' \ 11 | '+i;;Case-sensitive match' \ 12 | '+s;;Do not sort the result' \ 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/g++.sh: -------------------------------------------------------------------------------- 1 | gcc.sh -------------------------------------------------------------------------------- /src/gatsby.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | _patch_help_fix_wrap | _patch_help_preprocess_yargs 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_detect_value_type 7 | } 8 | -------------------------------------------------------------------------------- /src/gawk.sh: -------------------------------------------------------------------------------- 1 | awk.sh -------------------------------------------------------------------------------- /src/gcloud.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | export CLOUDSDK_COMPONENT_MANAGER_DISABLE_UPDATE_CHECK=1 11 | _module_bridge_argcomplete 12 | } 13 | -------------------------------------------------------------------------------- /src/gdb.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--interpreter;[`_choice_interpreter`]' \ 4 | '--pid;[`_module_os_pid`]' \ 5 | | \ 6 | _patch_table_edit_arguments ';;' 'FILES...' | \ 7 | _patch_table_edit_commands ';;' 8 | } 9 | 10 | _choice_interpreter() { 11 | cat <<-'EOF' 12 | console The traditional console or command-line interpreter. 13 | mi The newest GDB/MI interface (currently mi2). 14 | mi2 The current GDB/MI interface. 15 | mi1 The GDB/MI interface included in GDB 5.1, 5.2, and 5.3. 16 | EOF 17 | } 18 | -------------------------------------------------------------------------------- /src/gdu.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type | \ 3 | _patch_table_edit_options \ 4 | '--ignore-dirs();*,' \ 5 | '--ignore-dirs-pattern;*,' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/getent.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | 'database;[`_choice_database`]' \ 4 | 5 | } 6 | 7 | _choice_database() { 8 | printf "%s\n" ahosts ahostsv4 ahostsv6 aliases ethers group gshadow hosts \ 9 | initgroup netgroup networks passwd protocols rpc services shadow 10 | } 11 | -------------------------------------------------------------------------------- /src/ghorg.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/ghz.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | \ 3 | sed \ 4 | -e 's/= / value/' \ 5 | -e 's/="\(\w\+\)"/ \1/' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_detect_value_type 11 | } 12 | -------------------------------------------------------------------------------- /src/gibo.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/gio.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_help $@ | sed 's/LOCATION/PATH/g' 3 | 4 | } 5 | 6 | _patch_table() { 7 | if [[ "$*" == "gio copy" ]] \ 8 | || [[ "$*" == "gio move" ]] \ 9 | ; then 10 | _patch_table_edit_arguments \ 11 | 'source()' \ 12 | 'destination()' \ 13 | 14 | else 15 | cat 16 | fi 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/gitleaks.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/global.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts 7 | } 8 | -------------------------------------------------------------------------------- /src/glow.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | if [[ "$*" == "glow" ]]; then 3 | _patch_table_edit_arguments ';;' 'path' 4 | 5 | elif [[ "$*" == "glow stash" ]]; then 6 | _patch_table_edit_arguments ';;' 'path' 7 | 8 | else 9 | cat 10 | fi 11 | } 12 | -------------------------------------------------------------------------------- /src/gnutls-cli.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --more-help 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--app-proto;[`_choice_proto`]' \ 8 | '--starttls-proto;[`_choice_proto`]' \ 9 | 10 | } 11 | 12 | _choice_proto() { 13 | printf "%s\n" https ftp smtp imap ldap xmpp lmtp pop3 nntp sieve postgres 14 | } 15 | -------------------------------------------------------------------------------- /src/gnutls-serv.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --more-help 3 | } 4 | -------------------------------------------------------------------------------- /src/goawk.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/ fn / file /' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-covermode;[set|count]' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/goctl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/godoc.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/gofmt.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-cpuprofile(file)' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/gpg.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/Examples:/,$ d' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--local-user;[`_module_os_user`]' \ 8 | '--recipient;[`_module_os_user`]' \ 9 | '--tofu-policy;[auto|good|unknown|bad|ask]' \ 10 | | \ 11 | _patch_table_edit_arguments ';;' 'FILES...' 12 | } 13 | -------------------------------------------------------------------------------- /src/gphoto2.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 7 | } 8 | -------------------------------------------------------------------------------- /src/gping.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'host_or_commands;~[`_choice_host_or_commands`]' 3 | } 4 | 5 | _choice_host_or_commands() { 6 | if [[ -n "$argc_cmd" ]]; then 7 | _module_os_exec 8 | fi 9 | } 10 | -------------------------------------------------------------------------------- /src/gptscript.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/grep.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--binary-files;[binary|test|without-match]' \ 4 | '--color;[auto|never|always]' \ 5 | '--colour;[auto|never|always]' \ 6 | '--devices;[read|skip]' \ 7 | '--directories;[read|recurse|skip]' \ 8 | | \ 9 | _patch_table_edit_arguments ';;' 'FILES...' 10 | } 11 | -------------------------------------------------------------------------------- /src/groups.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'users;*[`_module_os_user`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/grpcurl.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type | \ 3 | _patch_table_edit_options \ 4 | '-H;[`_module_http_header`]' \ 5 | | \ 6 | _patch_table_edit_arguments \ 7 | ';;' \ 8 | 'address' \ 9 | '{list|describe}' \ 10 | '[symbol]' 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/gs.sh: -------------------------------------------------------------------------------- 1 | ghostscript.sh -------------------------------------------------------------------------------- /src/gum.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/">\s\?"//' \ 5 | -e '/^\s*-/ s/="\([^"]\+\)"/=<\1>/' \ 6 | -e '/^\s*-/ s/=""/=/' \ 7 | -e 's/\s*\.\.\./.../' \ 8 | 9 | } 10 | 11 | _patch_table() { 12 | if [[ "$*" == "gum spin" ]]; then 13 | _patch_table_edit_arguments \ 14 | ';;' \ 15 | 'command;[`_module_os_command`]' \ 16 | 'args;~[`_module_os_command_args`]' \ 17 | 18 | else 19 | cat 20 | fi 21 | } 22 | -------------------------------------------------------------------------------- /src/gunzip.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/gzip.sh: -------------------------------------------------------------------------------- 1 | gunzip.sh -------------------------------------------------------------------------------- /src/hasura.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/helmfile.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/help2man.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'executable;[`_module_os_command`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/highlight.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | -e 's/-t, --tab/--tab/' \ 5 | -e 's/-n, --line-numbe/--line-numbe/' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/himalaya.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "himalaya sort" ]]; then 3 | $@ --help | sed 's/-c, --criterion/ --criterion/' 4 | else 5 | $@ --help 6 | fi 7 | } 8 | -------------------------------------------------------------------------------- /src/hostname.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options '--file()' | \ 7 | _patch_table_edit_arguments ';;' 8 | } 9 | -------------------------------------------------------------------------------- /src/hrp.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/https.sh: -------------------------------------------------------------------------------- 1 | http.sh -------------------------------------------------------------------------------- /src/hunspell.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/hx.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--health;[`_choice_health`]' 3 | 4 | } 5 | 6 | _choice_health() { 7 | hx --health | gawk '{if ($1 == "Language" && $2 == "LSP") {p=1;next;}; if(p==1){print $1}}' 8 | } 9 | -------------------------------------------------------------------------------- /src/iconv.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--from-code;[`_choice_code`]' \ 4 | '--to-code;[`_choice_code`]' \ 5 | 6 | } 7 | 8 | _choice_code() { 9 | iconv --list | sed 's|//||' 10 | } 11 | -------------------------------------------------------------------------------- /src/id.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'user;[`_module_os_user`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/install.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--group;[`_module_os_group`]' \ 4 | '--owner;[`_module_os_user`]' \ 5 | '--strip-program()' \ 6 | | \ 7 | _patch_table_edit_arguments ';;' 'FILES...' 8 | } 9 | -------------------------------------------------------------------------------- /src/ipatool.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/ipinfo.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_compline`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/istioctl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/jar.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed -n '/Main operation mode:/,$ p' | \ 4 | sed 's/-?, //' 5 | } 6 | -------------------------------------------------------------------------------- /src/jenv.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | if _argc_util_has_path_prefix; then 11 | _argc_util_comp_path 12 | return 13 | fi 14 | 15 | len="${#argc__args[@]}" 16 | if [[ "$len" -eq 2 ]]; then 17 | jenv commands 18 | else 19 | jenv completions "${argc__args[@]:1}" 20 | fi 21 | } 22 | -------------------------------------------------------------------------------- /src/jless.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--mode;[`_choice_mode`]' | \ 3 | _patch_table_edit_arguments ';;' 'input-file' 4 | } 5 | 6 | _choice_mode() { 7 | cat <<-'EOF' 8 | line opening and closing curly and square brackets are shown and all Object keys are quoted. 9 | data closing braces, commas, and quotes around Object keys are elided. 10 | EOF 11 | } 12 | -------------------------------------------------------------------------------- /src/jmeter.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | -------------------------------------------------------------------------------- /src/jnv.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--edit-mode;[`_choice_edit_mode`]' \ 4 | 5 | } 6 | 7 | _choice_edit_mode() { 8 | cat <<-EOF 9 | insert inserts a new input at the cursor's position. 10 | overwrite mode replaces existing characters with new input at the cursor's position. 11 | EOF 12 | } 13 | -------------------------------------------------------------------------------- /src/joker.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^Notes:/,/^[A-Z]/ {//!d;}' \ 5 | -e '/^Options/,$ s/^ / /' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_arguments ';;' 11 | } 12 | -------------------------------------------------------------------------------- /src/just.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--command;[`_module_os_command`]' | \ 3 | _patch_table_edit_arguments 'arguments;[`_choice_recipe`]' 4 | } 5 | 6 | _choice_recipe() { 7 | just --summary 2> /dev/null | tr " " "\n" || gawk '{$1=$1};1' 8 | } 9 | -------------------------------------------------------------------------------- /src/k3d.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/k6.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/k9s.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/kak.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-c;[`_choice_session`]' \ 4 | '-p;[`_choice_session`]' \ 5 | '-ui;[terminal|dummy|json]' \ 6 | 7 | } 8 | 9 | _choice_session() { 10 | kak -l 11 | } 12 | -------------------------------------------------------------------------------- /src/keepassxc-cli.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "keepassxc-cli open" ]]; then 3 | :; 4 | else 5 | $@ --help 2>&1 | sed '/^Available commands:/,/^\s*$/ s/^\(\S\+\) / \1 /' 6 | fi 7 | } 8 | -------------------------------------------------------------------------------- /src/keytool.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "keytool" ]]; then 3 | echo 'Commands:' 4 | $@ --help 2>&1 | sed -n '/^\s*-/ s/^\s*\(-\S\+\)\s\+\(.*\)/ \\\1 - \2/p' 5 | else 6 | $@ --help 2>&1 7 | fi 8 | } 9 | -------------------------------------------------------------------------------- /src/killall.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--ns;[`_module_os_pid`]' \ 4 | '--signal;[`_module_os_signal`]' \ 5 | '--user;[`_module_os_user`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/killport.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--signal;[`_module_os_signal`]' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/kind.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/kompose.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type | \ 3 | _patch_table_dedup_options \ 4 | '--controller' \ 5 | '--service-group-mode' \ 6 | '--service-group-name' \ 7 | | \ 8 | _patch_table_edit_options \ 9 | '--build;[local|build-config|none]' \ 10 | '--provider;[Kubernetes|OpenShift]' \ 11 | '--volumes;[persistentVolumeClaim|emptyDir|hostPath|configMap]' \ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/kops.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/kotlin.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -help | \ 3 | sed \ 4 | -e '/^\s*-/ s/(\(-\S\+\))/\1/' \ 5 | -e '/^\s*-/ s/^\(\s*-[A-Z]\)/\1 /' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options \ 11 | '-D;-*' \ 12 | '-J;-*' \ 13 | '-X;-*' \ 14 | '-classpath;*:[`_choice_class_path`]' \ 15 | '-howtorun;[guess|classfile|jar|script]' \ 16 | | \ 17 | _patch_table_edit_arguments ';;' 18 | } 19 | 20 | _choice_class_path() { 21 | _argc_util_comp_path exts=.jar,.zip 22 | } 23 | -------------------------------------------------------------------------------- /src/kubens.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | echo "USAGE: $1 NAME" 3 | $@ --help | \ 4 | sed -n "s/^ $1 -/ -/p" | \ 5 | sed -e 's/ : / /' 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_arguments 'name;[`_choice_name`]' 10 | } 11 | 12 | _choice_name() { 13 | echo - 14 | _choice_ns 15 | } 16 | 17 | _choice_ns() { 18 | kubens 19 | } 20 | -------------------------------------------------------------------------------- /src/kubescape.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/kustomize.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/lastb.sh: -------------------------------------------------------------------------------- 1 | last.sh -------------------------------------------------------------------------------- /src/lazygit.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--filter()' \ 4 | '--git-dir()' \ 5 | '--path()' \ 6 | '--use-config-dir()' \ 7 | '--use-config-file();*,' \ 8 | '--work-tree()' \ 9 | | \ 10 | _patch_table_edit_arguments 'arg;[status|branch|log|stash]' 11 | } 12 | -------------------------------------------------------------------------------- /src/ldconfig.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/lefthook.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/less.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | echo "usage: less [option] files..." 3 | $@ --help | \ 4 | sed -n -e 's/.\x08//g' -e '/^\s*-?/,/--------/ p' | \ 5 | sed \ 6 | -e 's/-" //' \ 7 | -e 's/ \.\+ //' \ 8 | -e 's/\(\S\) -/\1 -/g' \ 9 | -e 's/^\s*-/ -/' \ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/lf.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-config()' \ 4 | '-cpuprofile()' \ 5 | '-last-dir-path()' \ 6 | '-log()' \ 7 | '-memprofile()' \ 8 | '-selection-path()' \ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/lima.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'command;[`_module_os_command`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/limactl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/links.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | -e '/More options can be seen with links -h/,$ d' \ 5 | -e 's;<0>/<1>/<2>/<3>/<4>;{0|1|2|3|4};' \ 6 | -e 's;<0>/<1>/<2>/<3>;{0|1|2|3};' \ 7 | -e 's;<0>/<1>/<2>;{0|1|2};' \ 8 | -e 's;<0>/<1>;{0|1};' \ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/linux/acpitool.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_options \ 4 | '-F;[1|0]' \ 5 | '-l;[`_choice_level`]' \ 6 | '-m;[1|0]' \ 7 | '-n;[1|0]' \ 8 | '-o;[1|0]' \ 9 | '-z;[`_choice_level2`]' \ 10 | 11 | } 12 | 13 | _choice_level() { 14 | seq 0 7 15 | } 16 | 17 | _choice_level2() { 18 | seq 0 15 19 | } 20 | -------------------------------------------------------------------------------- /src/linux/adduser.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--shell;[`_module_os_shell`]' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/linux/alsamixer.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--abstraction;[none|basic]' \ 4 | '--card;[`_choice_card`]' \ 5 | '--view;[playback|capture|all]' \ 6 | 7 | } 8 | 9 | _choice_card() { 10 | aplay -l | grep '^card [0-9]\+' | sed 's/card \([0-9]\+\): \(.\+\) \[.*\].*/\1\t\2/' 11 | } 12 | -------------------------------------------------------------------------------- /src/linux/arecord.sh: -------------------------------------------------------------------------------- 1 | aplay.sh -------------------------------------------------------------------------------- /src/linux/arp.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_options \ 8 | '--device;[`_module_os_network_interface`]' \ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/linux/arping.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_options \ 4 | '-i;[`_module_os_network_interface`]' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/linux/at.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/attr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | cat <<-'EOF' | _patch_help_embed_help $@ 3 | -q quiet output 4 | -L dereference symbolic links 5 | -R operator in the root attribute namespace 6 | # -s attrname pathname - set value 7 | -V 8 | # -g attrname pathname - get value 9 | # -r attrname pathname - remove value 10 | # -l pathname 11 | EOF 12 | } 13 | 14 | _patch_table() { 15 | if [[ "$*" == "attr" ]]; then 16 | _patch_table_add_metadata combine-shorts inherit-flag-options 17 | 18 | else 19 | cat 20 | fi 21 | } 22 | -------------------------------------------------------------------------------- /src/linux/avahi-browse.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'service-type;[`_choice_service_type`]' 3 | } 4 | 5 | _choice_service_type() { 6 | mapfile -t serv < <(avahi-browse -bk) 7 | mapfile -t desc < <(avahi-browse -b) 8 | len="${#serv[@]}" 9 | for ((i=0; i < len; i++)); do 10 | echo -e "${serv[i]}\t${desc[i]}" 11 | done 12 | } 13 | -------------------------------------------------------------------------------- /src/linux/avahi-resolve.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-a()' \ 4 | '-n();[`_module_os_hostname`]' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/linux/beep.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed '/^Exit status:/,/^\s*$/ d' 4 | } 5 | -------------------------------------------------------------------------------- /src/linux/brightnessctl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -eq 1 ]]; then 3 | $@ --help 2>&1| \ 4 | sed \ 5 | -e '/^Usage:/ s/ \[operation\]//' \ 6 | -e '/^Operations:/,/^\s*$/ s/ \([A-Z]\+\)\t/ /' \ 7 | -e 's/^Operations:/Commands:/' \ 8 | 9 | fi 10 | } 11 | 12 | _patch_table() { 13 | if [[ "$*" == "brightnessctl" ]]; then 14 | _patch_table_add_metadata 'inherit-flag-options' 15 | 16 | else 17 | cat 18 | fi 19 | } 20 | -------------------------------------------------------------------------------- /src/linux/cdrecord.sh: -------------------------------------------------------------------------------- 1 | wodim.sh -------------------------------------------------------------------------------- /src/linux/cfdisk.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--color;[auto|never|always]' \ 4 | '--lock;[yes|no|nonblock]' \ 5 | | \ 6 | _patch_table_edit_arguments 'disk;[`_choice_disk`]' 7 | } 8 | 9 | _choice_disk() { 10 | _argc_util_comp_path 11 | _choice_block_device 12 | } 13 | 14 | _choice_block_device() { 15 | lsblk --json -o KNAME,LABEL,PARTLABEL,PARTUUID,PATH,SIZE,PARTTYPENAME,TYPE,UUID | \ 16 | yq '.blockdevices[] | .path + " " + .size + " " + (.parttypename // "")' 17 | } 18 | -------------------------------------------------------------------------------- /src/linux/choom.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--pid;[`_module_os_pid`]' \ 4 | | \ 5 | _patch_table_edit_arguments \ 6 | ';;' \ 7 | 'command;[`_module_os_command`]' \ 8 | 'args;~[`_module_os_command_args`]' \ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/linux/chpasswd.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--crypt-method;[`_choice_crypt_method`]' 3 | } 4 | 5 | _choice_crypt_method() { 6 | printf "%s\n" DES MD5 NONE SHA256 SHA512 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/chsh.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--shell;[`_module_os_shell`]' | \ 3 | _patch_table_edit_arguments 'login;[`_module_os_user`]' 4 | } 5 | -------------------------------------------------------------------------------- /src/linux/coredumpctl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "coredumpctl" ]]; then 3 | $@ --help 4 | fi 5 | } 6 | 7 | _patch_table() { 8 | if [[ "$*" == "coredumpctl" ]]; then 9 | _patch_table_add_metadata 'inherit-flag-options' | \ 10 | _patch_table_edit_options \ 11 | '--debugger;[`_module_os_command`]' \ 12 | '--json;[pretty|short|off]' \ 13 | 14 | else 15 | cat 16 | fi 17 | } 18 | -------------------------------------------------------------------------------- /src/linux/dbus-launch.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments \ 7 | 'program;[`_module_os_command`]' \ 8 | 'args;~[`_module_os_command_args`]' \ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/linux/dbus-send.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_dedup_options \ 7 | '--print-reply' \ 8 | | \ 9 | _patch_table_edit_options \ 10 | '--print-reply;[literal]' \ 11 | '--type;[method_call|signal]' \ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/linux/dhclient.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'ifaces;*[`_module_os_network_interface`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/dhcpcd.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_arguments ';;' 'ifaces;*[`_module_os_network_interface`]' 8 | } 9 | -------------------------------------------------------------------------------- /src/linux/dmenu.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/doas.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_options \ 8 | '-C()' \ 9 | '-u;[`_module_os_user`]' \ 10 | | \ 11 | _patch_table_edit_arguments \ 12 | 'command;[`_module_os_command`]' \ 13 | 'args;~[`_module_os_command_args`]' \ 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/linux/dpkg-reconfigure.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments 'packages;*[`_choice_package`]' 7 | } 8 | 9 | _choice_package() { 10 | dpkg-query -W -f '${Package}\n' 11 | } 12 | -------------------------------------------------------------------------------- /src/linux/dstat.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | '/^\s*-/ s/: / /' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_add_metadata combine-shorts | \ 10 | _patch_table_edit_options \ 11 | '-N;[`_module_os_network_interface`]' \ 12 | | \ 13 | _patch_table_edit_arguments ';;' 'delay' 'count' 14 | } 15 | -------------------------------------------------------------------------------- /src/linux/encfs.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'mountpoint(mountpath)' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/ethtool.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'ifaces;*[`_module_os_network_interface`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/evince.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'file...' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/fakeroot.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | echo "Usage: fakeroot [options] files..." 3 | echo "Options:" 4 | _patch_help_run_man fakeroot | sed -n '/^OPTIONS/,/^EXAMPLES/ {//!p}' 5 | } 6 | -------------------------------------------------------------------------------- /src/linux/getfacl.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/getfattr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_options \ 8 | '--encoding;[text|hex|base64]' \ 9 | | \ 10 | _patch_table_edit_arguments ';;' 'pathname...' 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/linux/gpasswd.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--add;[`_module_os_user`]' \ 4 | '--administrators;*,[`_module_os_user`]' \ 5 | '--delete;[`_module_os_user`]' \ 6 | '--members;*,[`_module_os_user`]' \ 7 | | \ 8 | _patch_table_edit_arguments ';;' 'group;[`_module_os_group`]' 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/linux/groupdel.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'group;[`_module_os_group`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/groupmems.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--add;[`_module_os_user`]' \ 4 | '--delete;[`_module_os_user`]' \ 5 | '--group;[`_module_os_group`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/groupmod.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'group;[`_module_os_group`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/hdparm.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments 'device(device-path)' 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/hostnamectl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$#" -eq 1 ]]; then 3 | $@ --help 4 | else 5 | $1 --help | sed -n "s/^ $2 \(.*\) .*/Usage: $1 $2 \1/p" 6 | fi 7 | } 8 | 9 | _patch_table() { 10 | if [[ "$*" == "hostnamectl" ]]; then 11 | _patch_table_add_metadata 'inherit-flag-options' 12 | 13 | else 14 | cat 15 | fi 16 | } 17 | -------------------------------------------------------------------------------- /src/linux/htop.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--pid;*,[`_module_os_pid`]' \ 4 | '--sort-key;[`_choice_sort_key`]' \ 5 | '--user;[`_module_os_user`]' \ 6 | 7 | } 8 | 9 | _choice_sort_key() { 10 | htop --sort-key=help 11 | } 12 | -------------------------------------------------------------------------------- /src/linux/hwclock.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/ifdown.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'interfaces;[`_module_os_network_interface`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/ifup.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'interfaces;[`_module_os_network_interface`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/ionice.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--class;[`_choice_class`]' \ 4 | '--classdata;[`_choice_classdata`]' \ 5 | '--pid;[`_module_os_pid`]' \ 6 | | \ 7 | _patch_table_edit_arguments ';;' 'command;[`_module_os_command`]' 8 | 9 | } 10 | 11 | _choice_class() { 12 | cat <<-'EOF' 13 | 0 none 14 | 1 realtime 15 | 2 best-effort 16 | 3 idle 17 | EOF 18 | } 19 | 20 | _choice_classdata() { 21 | echo -e "0\thigh priority" 22 | seq 1 6 23 | echo -e "7\thigh priority" 24 | } 25 | -------------------------------------------------------------------------------- /src/linux/iostat.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--dec();[0|1|2]' \ 8 | '-g( )' \ 9 | '-j( )' \ 10 | '-p()' \ 11 | | \ 12 | _patch_table_edit_arguments ';;' 'devices' 'interval' 'count' 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/linux/kpartx.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ | sed '/^\s*-/ s/\(-\S\+\)/\1 /' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'path' 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/last.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^ -/ d' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options '--time-format;[notime|short|full|iso]' | \ 7 | _patch_table_edit_arguments ';;' 'user-or-tty;*[`_choice_value`]' 8 | } 9 | 10 | _choice_value() { 11 | _argc_util_parallel _module_os_user ::: _module_os_tty 12 | } 13 | -------------------------------------------------------------------------------- /src/linux/lastlog.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--user;[`_module_os_user`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/loadkeys.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--console;[`_choice_device`]' \ 4 | 5 | } 6 | 7 | _choice_device() { 8 | find /dev/ -type c 9 | } 10 | -------------------------------------------------------------------------------- /src/linux/losetup.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--detach(loopdev+);[`_choice_loopdev`]' \ 4 | '--direct-io;[on|off]' \ 5 | '--output;*,[`_choice_column`]' \ 6 | 7 | } 8 | 9 | _choice_loopdev() { 10 | if [[ -z "$ARGC_CWORD" ]]; then 11 | ls -1 /dev/loop* 12 | else 13 | _argc_util_comp_path 14 | fi 15 | } 16 | 17 | _choice_column() { 18 | losetup --help | sed -n '/^Available output columns:/,/^\s*$/ {//d; s/^\s*\(\S\+\) \(.*\)/\1\t\2/p}' 19 | } 20 | -------------------------------------------------------------------------------- /src/linux/lsattr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/lsusb.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-D()' \ 4 | '-d;[`_choice_d`]' \ 5 | '-s;[`_choice_s`]' \ 6 | 7 | } 8 | 9 | _choice_s() { 10 | lsusb | gawk '{x=""; for (i=7; i<=NF; i++) x= x " " $i; gsub(/:$/, "", $4); print $2 ":" $4 "\t" x}' 11 | } 12 | 13 | _choice_d() { 14 | lsusb | gawk '{x=""; for (i=7; i<=NF; i++) x= x " " $i; print $6 "\t" x}' 15 | } 16 | -------------------------------------------------------------------------------- /src/linux/ltrace.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options \ 3 | ';;' \ 4 | '--debug' \ 5 | | \ 6 | _patch_table_edit_options \ 7 | '--pid;[`_module_os_pid`]' \ 8 | | \ 9 | _patch_table_edit_arguments \ 10 | 'command;[`_module_os_command`]' \ 11 | 'args;~[`_module_os_command_args`]' \ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/linux/mbuffer.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | sed '/^-/ s/: / /' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_dedup_options '-I' 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/meld.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--diff(path...);;Create a diff tab for the given files or directories.' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/linux/mii-tool.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--advertise;*,[`_choice_media`]' \ 4 | '--force;[`_choice_media`]' \ 5 | | \ 6 | _patch_table_edit_arguments 'interface;[`_module_os_network_interface`]' 7 | } 8 | 9 | _choice_media() { 10 | printf "%s\n" 100baseT4 100baseTx-FD 100baseTx-HD 10baseT-FD and 10baseT-HD 11 | } 12 | -------------------------------------------------------------------------------- /src/linux/mkpasswd.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--method;[`_choice_method`]' \ 4 | 5 | } 6 | 7 | _choice_method() { 8 | mkpasswd -m help | tail -n +2 | sed 's/\s\+/\t/' 9 | } 10 | -------------------------------------------------------------------------------- /src/linux/mkswap.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--lock;[yes|no|nonblock]' | \ 3 | _patch_table_edit_arguments ';;' 'device;[`_choice_block_device`]' 4 | } 5 | 6 | _choice_block_device() { 7 | lsblk --json -o KNAME,LABEL,PARTLABEL,PARTUUID,PATH,SIZE,PARTTYPENAME,TYPE,UUID | \ 8 | yq '.blockdevices[] | .path + " " + .size + " " + (.parttypename // "")' 9 | } 10 | -------------------------------------------------------------------------------- /src/linux/mpstat.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--desc;[0|1|2]' \ 8 | '-I();[SUM|CPU|SCPU|ALL]' \ 9 | '-P();*[`_choice_cpu`]' \ 10 | | \ 11 | _patch_table_edit_arguments ';;' 'interval' 'count' 12 | } 13 | 14 | _choice_cpu() { 15 | echo ALL 16 | seq 0 $(getconf _NPROCESSORS_ONLN) 17 | } 18 | -------------------------------------------------------------------------------- /src/linux/netctl-auto.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$#" -eq 1 ]]; then 3 | $@ --help 4 | else 5 | $1 --help | sed -n "s/^ $2 \(.*\) .*/Usage: $1 $2 \1/p" 6 | fi 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_arguments 'profile;[`_choice_profile`]' 11 | } 12 | 13 | _choice_profile() { 14 | netctl-auto list | tr -d ' *\t' 15 | } 16 | -------------------------------------------------------------------------------- /src/linux/netctl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$#" -eq 1 ]]; then 3 | $@ --help 4 | else 5 | $1 --help | sed -n "s/^ $2 \(.*\) .*/Usage: $1 $2 \1/p" 6 | fi 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_arguments 'profile;[`_choice_profile`]' 11 | } 12 | 13 | _choice_profile() { 14 | netctl list | tr -d ' *\t' 15 | } 16 | -------------------------------------------------------------------------------- /src/linux/nsenter.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--setgid;[`_module_os_gid`]' \ 4 | '--setuid;[`_module_os_uid`]' \ 5 | '--target;[`_module_os_pid`]' \ 6 | | \ 7 | _patch_table_edit_arguments \ 8 | ';;' \ 9 | 'program;[`_module_os_command`]' \ 10 | 'args;~[`_module_os_command_args`]' \ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/linux/passwd.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'login;[`_module_os_user`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/pidstat.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--desc;[0|1|2]' \ 8 | '-C;[`_module_os_command`]' \ 9 | '-T();[TASK|CHILD|ALL]' \ 10 | '-U;[`_module_os_user`]' \ 11 | '-e;~[`_module_os_exec`]' \ 12 | '-p();[`_choice_pid`]' \ 13 | | \ 14 | _patch_table_edit_arguments ';;' 'interval' 'count' 15 | } 16 | 17 | _choice_pid() { 18 | print '%s\n' SELF ALL 19 | _module_os_pid 20 | } 21 | -------------------------------------------------------------------------------- /src/linux/ping.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_options '-M;[do|dont|want]' | \ 4 | _patch_table_edit_arguments ';;' '' 5 | } 6 | -------------------------------------------------------------------------------- /src/linux/renice.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--pgrp()' \ 4 | '--pid;[`_module_os_pid`]' \ 5 | '--user;[`_module_os_user`]' \ 6 | | \ 7 | _patch_table_edit_arguments ';;' '' 8 | } 9 | -------------------------------------------------------------------------------- /src/linux/rmmod.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'modulename;[`_choice_mod`]' 3 | } 4 | 5 | _choice_mod() { 6 | version=`uname -r` 7 | find "/lib/modules/$version/kernel/" -type f -name *.ko | \ 8 | gawk '{split($0, parts, "/"); v=parts[length(parts)]; gsub(/.ko$/, "", v); print v}' 9 | } 10 | -------------------------------------------------------------------------------- /src/linux/setfattr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'pathname...' 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/setsid.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'program;[`_module_os_command`]' \ 5 | 'arguments;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/ss.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/su.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/-, -l/-l/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--command;[`_module_os_command`]' \ 8 | '--group;[`_module_os_group`]' \ 9 | '--session-command;[`_module_os_command`]' \ 10 | '--shell;[`_module_os_shell`]' \ 11 | '--supp-group;[`_module_os_group`]' \ 12 | | \ 13 | _patch_table_edit_arguments ';;' 'user;[`_module_os_user`]' 'args...' 14 | } 15 | -------------------------------------------------------------------------------- /src/linux/sulogin.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'file' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/sv.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -eq 1 ]]; then 3 | _patch_help_run_man $@ 4 | else 5 | :; 6 | fi 7 | } 8 | 9 | _patch_table() { 10 | if [[ $# -eq 1 ]]; then 11 | _patch_table_add_metadata inherit-flag-options | \ 12 | _patch_table_edit_arguments ';;' 13 | 14 | else 15 | _patch_table_edit_arguments ';;' 'services;[`_choice_service`]' 16 | fi 17 | } 18 | 19 | _choice_service() { 20 | ls -1 /etc/service/ 21 | } 22 | -------------------------------------------------------------------------------- /src/linux/systemd-nspawn.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options \ 3 | '--private-users' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/linux/tracepath.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' '' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/unshare.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'program;[`_module_os_command`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/useradd.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--gid;[`_module_os_group`]' \ 4 | '--group;*,[`_module_os_group`]' \ 5 | '--shell;*,[`_module_os_shell`]' \ 6 | | \ 7 | _patch_table_edit_arguments ';;' 'login;[`_module_os_user`]' 8 | } 9 | -------------------------------------------------------------------------------- /src/linux/userdel.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'login;[`_module_os_user`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/linux/usermod.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--gid;[`_module_os_group`]' \ 4 | '--group;[`_module_os_group`]' \ 5 | '--groups;*,[`_module_os_group`]' \ 6 | '--shell;*,[`_module_os_shell`]' \ 7 | | \ 8 | _patch_table_edit_arguments ';;' 'login;[`_module_os_user`]' 9 | } 10 | -------------------------------------------------------------------------------- /src/linux/wipefs.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--lock;[yes|no|nonbloc]' \ 4 | '--output;[`_choice_column`]' \ 5 | | \ 6 | _patch_table_edit_arguments ';;' 'device-path' 7 | } 8 | 9 | _choice_column() { 10 | wipefs --help | sed -n '/^Available output columns:/,/^\s*$/ {//d; s/^\s*\(\S\+\) \(.*\)/\1\t\2/p}' 11 | } 12 | -------------------------------------------------------------------------------- /src/linux/xdg-open.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'file-url' 7 | } 8 | -------------------------------------------------------------------------------- /src/linux/xrandr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_dedup_options \ 7 | '--dpi' \ 8 | '--rate' \ 9 | | \ 10 | _patch_table_edit_options \ 11 | '--orientation;[normal|inverted|left|right]' \ 12 | '--reflect;[normal|x|y|xy]' \ 13 | '--rotate;[normal|left|right|inverted]' \ 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/lldb.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options \ 3 | ';;' \ 4 | '--repl' \ 5 | '-r' \ 6 | | \ 7 | _patch_table_edit_options \ 8 | '--attach-pid;[`_module_os_pid`]' \ 9 | '--one-line;[`_module_os_command_args`]' \ 10 | '--one-line-before-file;[`_module_os_command_args`]' \ 11 | '--one-line-on-crash;[`_module_os_command_args`]' \ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/locale.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'name;[`_choice_locale`]' 3 | } 4 | 5 | _choice_locale() { 6 | localectl list-locales 7 | } 8 | -------------------------------------------------------------------------------- /src/locust.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--loglevel;[DEBUG|INFO|WARNING|ERROR|CRITICAL]' \ 4 | | \ 5 | _patch_table_edit_arguments 'userclass;[`_choice_userclass`]' 6 | 7 | } 8 | 9 | _choice_userclass() { 10 | locust --list | sed -n 's/^\s\+\(.*\)$/\1/p' 11 | } 12 | -------------------------------------------------------------------------------- /src/logrotate.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--mail;[`_module_os_command`]' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/lua.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options '-l' | \ 3 | _patch_table_edit_arguments ';;' 'script(file:.lua)' 'args...' 4 | } 5 | -------------------------------------------------------------------------------- /src/lux.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/m4.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^FLAGS /,/^\s*/ d' 3 | } 4 | -------------------------------------------------------------------------------- /src/macos/afplay.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | \ 3 | sed \ 4 | -e '/^Options:/, $ s/^/ /' \ 5 | -e 's/^\s*{-\(\S\) | --\(\S\+\)}/ -\1, --\2/' \ 6 | -e 's/^\s*{ --\(\S\+\)}/ --\1/' \ 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/macos/arp.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-i;[`_module_os_network_interface`]' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/macos/caffeinate.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | -------------------------------------------------------------------------------- /src/macos/codesign.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | 's/-v, --verbose/--verbose/' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_arguments ';;' 10 | } 11 | -------------------------------------------------------------------------------- /src/macos/dscacheutil.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-entries;[`_choice_category`]' \ 8 | '-q;[`_choice_category`]' \ 9 | 10 | } 11 | 12 | _choice_category() { 13 | cat <<-'EOF' 14 | group name or gid 15 | host name or ip_address (used for both IPv6 and IPv4) 16 | mount name 17 | protocol name or number 18 | rpc name or number 19 | service name or port 20 | user name or uid 21 | EOF 22 | } 23 | -------------------------------------------------------------------------------- /src/macos/networkQuality.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed \ 4 | -e 's|configuration URL/path| |' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_options \ 10 | '-I;[`_module_os_network_interface`]' \ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/macos/nvram.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-d;[`_choice_variable`]' \ 4 | | \ 5 | _patch_table_edit_arguments ';;' 'vars;*[`_choice_variable`]' 6 | 7 | } 8 | 9 | _choice_variable() { 10 | nvram -p 11 | } 12 | -------------------------------------------------------------------------------- /src/macos/osascript.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-s;*[`_choice_flag`]' \ 8 | 9 | } 10 | 11 | _choice_flag() { 12 | cat <<-'EOF' 13 | h Print values in human-readable form (default). 14 | s Print values in recompilable source form. 15 | e Print script errors to stderr (default). 16 | o Print script errors to stdout. 17 | EOF 18 | } 19 | -------------------------------------------------------------------------------- /src/macos/otool.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ 2>&1 | \ 3 | sed \ 4 | -e 's/^\(\s*-\S\+\) \([^<]\+\)/\1 \2/' \ 5 | -e '/^\s*-/ s/> \([^<]\+\)/> \1/' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options \ 11 | '-s()' \ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/macos/pbcopy.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | sed 's/ | /|/g' 3 | } 4 | -------------------------------------------------------------------------------- /src/macos/ping.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | -------------------------------------------------------------------------------- /src/macos/shortcuts.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | if [[ "$*" == "shortcuts run" ]] \ 3 | || [[ "$*" == "shortcuts view" ]] \ 4 | ; then 5 | _patch_table_edit_arguments ';;' 'shortcut-name;[`_choice_shortcut`]' 6 | else 7 | cat 8 | fi 9 | } 10 | 11 | _choice_shortcut() { 12 | shortcuts list 13 | } 14 | -------------------------------------------------------------------------------- /src/macos/sw_vers.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | -------------------------------------------------------------------------------- /src/macos/xcodebuild.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | \ 3 | sed \ 4 | -e '/^\s*-/ s/:\([A-Z-]\+\)/- \1/' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_arguments ';;' 10 | } 11 | -------------------------------------------------------------------------------- /src/macos/xcrun.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'cmd;[`_choice_cmd`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | 9 | _choice_cmd() { 10 | ls -1 /Applications/Xcode.app/Contents/Developer/usr/bin/ 11 | ls -1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin 12 | } 13 | -------------------------------------------------------------------------------- /src/magick.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | sed '/^DESCRIPTION/,/^[A-Z]/ {s/ / /}' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_dedup_options \ 7 | '-flatten' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/make.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' '[target]...;[`_choice_target`]' 3 | } 4 | 5 | _choice_target() { 6 | if [[ -f Makefile ]]; then 7 | gawk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}' Makefile 8 | fi 9 | } 10 | -------------------------------------------------------------------------------- /src/mask.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'task;[`_choice_task`]' 3 | } 4 | 5 | _choice_task() { 6 | _helper_find_maskfile 7 | if [[ -f "$maskfile" ]]; then 8 | cat "$maskfile" | sed -n 's/^\s*## \(\S\+\).*$/\1/p' 9 | fi 10 | } 11 | 12 | _helper_find_maskfile() { 13 | maskfile="$argc_maskfile" 14 | if [[ -z "$maskfile" ]]; then 15 | maskfile="$(_argc_util_path_search_parent maskfile.md)" 16 | fi 17 | } 18 | -------------------------------------------------------------------------------- /src/mat2.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'files...' 3 | } 4 | -------------------------------------------------------------------------------- /src/mitmdump.sh: -------------------------------------------------------------------------------- 1 | mitmproxy.sh -------------------------------------------------------------------------------- /src/mitmweb.sh: -------------------------------------------------------------------------------- 1 | mitmproxy.sh -------------------------------------------------------------------------------- /src/mknod.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'name' 'type;[`_choice_type`]' 3 | } 4 | 5 | _choice_type() { 6 | cat <<-'EOF' 7 | b create a block (buffered) special file 8 | c create a character (unbuffered) special file 9 | u create a character (unbuffered) special file 10 | p create a FIFO 11 | EOF 12 | } 13 | -------------------------------------------------------------------------------- /src/mongocli.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/mongosh.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^\s*-/ s/\[arg\]/string/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_detect_value_type | \ 7 | _patch_table_edit_options \ 8 | '--json;[canonical|relaxed]' \ 9 | '--retryWrites;[true|false]' \ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/monolith.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--cookies()' \ 4 | '--output()' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/most.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_arguments ';;' 'filename...' 8 | } 9 | -------------------------------------------------------------------------------- /src/msfdb.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -eq 1 ]]; then 3 | $@ --help | sed '/^\s*-/ s/ \([A-Z0-9]\+\) \([A-Z][a-z]\)/ \1 \2/' 4 | fi 5 | } 6 | 7 | _patch_table() { 8 | if [[ "$*" == "msfdb" ]]; then 9 | _patch_table_add_metadata 'inherit-flag-options' 10 | 11 | else 12 | cat 13 | fi 14 | } 15 | -------------------------------------------------------------------------------- /src/mutt.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h | sed 's/ \[\.\.\.\] --/ /' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_options \ 8 | '-b;[`_choice_address`]' \ 9 | '-c;[`_choice_address`]' \ 10 | | \ 11 | _patch_table_edit_arguments ';;' 'addr;[`_choice_address`]' 12 | 13 | } 14 | 15 | _choice_address() { 16 | abook --mutt-query "" | sed '/^\s*$/ d' 17 | } 18 | -------------------------------------------------------------------------------- /src/naabu.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/nali.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/nano.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/-\(\S\).*\(--.*\)/-\1, \2/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'FILES...' 7 | } 8 | -------------------------------------------------------------------------------- /src/navi.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "navi" ]]; then 3 | $@ --help | sed '/^FEATURE STABILITY:/,/^\s*$/ d' 4 | 5 | else 6 | $@ --help 7 | fi 8 | } 9 | -------------------------------------------------------------------------------- /src/nc.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man netcat | sed -n '/^DESCRIPTION/, /^CLIENT/ {//!p}' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_arguments ';;' 'destination' 'port' 8 | } 9 | -------------------------------------------------------------------------------- /src/ncdu.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--color;[off|dark]' 3 | } 4 | -------------------------------------------------------------------------------- /src/neomutt.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h | \ 3 | sed \ 4 | -e 's/^ -D -O/ -O /' \ 5 | -e 's/^ -D -S/ -S /' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_add_metadata combine-shorts | \ 11 | _patch_table_edit_options \ 12 | '-F()' \ 13 | '-d;[1|2|3|4|5]' \ 14 | '-e;[`_module_os_command`]' \ 15 | '-i()' \ 16 | '-m;[MH|MMDF|Maildir|mbox]' \ 17 | | \ 18 | _patch_table_edit_arguments ';;' 'address' 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/netcat.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man netcat | sed -n '/^DESCRIPTION/, /^CLIENT/ {//!p}' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_arguments ';;' 'destination' 'port' 8 | } 9 | -------------------------------------------------------------------------------- /src/newman.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | if [[ "$*" == "newman run" ]]; then 3 | _patch_table_edit_arguments ';;' 'file' 4 | 5 | else 6 | cat 7 | fi 8 | } 9 | -------------------------------------------------------------------------------- /src/newrelic.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/newsboat.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--execute;[`_module_os_command`]' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/next.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "next" ]]; then 3 | $@ --help | \ 4 | sed \ 5 | -e 's/ //' \ 6 | -e '/Available commands/,+1 s/, /\n /g' \ 7 | 8 | else 9 | $@ --help | \ 10 | sed \ 11 | -e 's/ //' \ 12 | -e 's/\$ next/next/' \ 13 | -e 's/::String//' \ 14 | 15 | fi 16 | } 17 | 18 | _patch_table() { 19 | _patch_table_detect_value_type 20 | } 21 | -------------------------------------------------------------------------------- /src/nfpm.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/nginx.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h 2>&1 | \ 3 | sed \ 4 | '/^\s*-/ s/ : / /' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_options \ 10 | '-s;[`_choice_signal`]' \ 11 | 12 | } 13 | 14 | _choice_signal() { 15 | cat <<-'EOF' 16 | quit shut down gracefully (SIGQUIT) 17 | reload reload configuration (SIGHUP) 18 | reopen re-open log files (SIGUSR1) 19 | stop shut down quickly (SIGTERM) 20 | EOF 21 | } 22 | -------------------------------------------------------------------------------- /src/ngrep.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed '/^\s*-/ s/\(-\S\) \(\S\+\)/\1 \2 /' 4 | } 5 | 6 | _patch_table() { 7 | _patch_table_add_metadata combine-shorts | \ 8 | _patch_table_edit_options \ 9 | '-d;[`_module_os_network_interface`]' \ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/ngrok.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/nice.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | 'command;[`_module_os_command`]' \ 4 | 'arg;~[`_module_os_command_args`]' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/nix-hash.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^Examples/,$ d' \ 5 | -e 's/…/.../g' \ 6 | -e '/^ • -/ {s| \(--\S\+\) / \(-\S\)| \2, \1|;s/^ • -/ -/;}' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_edit_options \ 12 | '--type;[md5|sha1|sha256|sha512]' \ 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/nix-instantiate.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^Examples/,$ d' \ 5 | -e 's/…/.../g' \ 6 | -e '/^ • -/ {s| \(--\S\+\) / \(-\S\)| \2, \1|;s/^ • -/ -/;}' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_edit_arguments 'files;[`_module_nix_path`]' 12 | } 13 | -------------------------------------------------------------------------------- /src/nix-prefetch-url.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^Examples/,$ d' \ 5 | -e 's/…/.../g' \ 6 | -e '/^ • -/ {s| \(--\S\+\) / \(-\S\)| \2, \1|;s/^ • -/ -/;}' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_edit_options \ 12 | '--type;[md5|sha1|sha256|sha512]' \ 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/nix-shell.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^Examples/,$ d' \ 5 | -e 's/…/.../g' \ 6 | -e '/^ • -/ {s| \(--\S\+\) / \(-\S\)| \2, \1|;s/^ • -/ -/;}' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_edit_arguments ';;' 'path;[`_module_nix_path`]' 12 | } 13 | -------------------------------------------------------------------------------- /src/nm.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata 'symbol @file' | \ 3 | _patch_table_edit_options \ 4 | '--demangle;[none|auto|gnu-v3|java|gnat|dlang|rust];Decode mangled/processed symbol' \ 5 | '--format;[bsd|sysv|posix]' \ 6 | '--unicode;;Controls the display of UTF-8 encoded multibyte characters in strings' \ 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/nnn.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | \ 3 | sed \ 4 | '/^\s*-/ s/-\(\S\) \(\S\+\)/-\1 \2 /' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_add_metadata combine-shorts 10 | } 11 | -------------------------------------------------------------------------------- /src/nohup.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'command;[`_module_os_command`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/nomad.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/nu.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/List(\(.*\))/\1.../g' \ 5 | -e "s/\x1B\[[0-9;]*[a-zA-Z]//g" \ 6 | -e '/^Flags:/, /^$/ s/ - / /' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_detect_value_type | \ 12 | _patch_table_edit_arguments ';;' 'file' 'args...' 13 | } 14 | -------------------------------------------------------------------------------- /src/nvim.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed -e 's/-r, -L/-L/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-S()' \ 8 | '-i()' \ 9 | '-l( args...);~' \ 10 | '-u()' \ 11 | | \ 12 | _patch_table_edit_arguments ';;' 'paths...' 13 | } 14 | -------------------------------------------------------------------------------- /src/ocaml.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/\s*(undocumented)/ d' \ 5 | -e '/^\s*-arg/,+1 {N; s/\n\s*from/ from/;}' 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/oh-my-posh.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/okteto.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/ollama.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | table="$( \ 3 | _patch_table_edit_arguments \ 4 | 'model;[`_choice_model`]' \ 5 | )" 6 | 7 | if [[ "$*" == "ollama create" ]]; then 8 | echo "$table" | \ 9 | _patch_table_edit_options \ 10 | '--file()' \ 11 | 12 | else 13 | echo "$table" 14 | fi 15 | } 16 | 17 | _choice_model() { 18 | ollama list | _argc_util_transform_table 'NAME' '' 19 | } 20 | -------------------------------------------------------------------------------- /src/onefetch.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'input(input-path)' 3 | } 4 | -------------------------------------------------------------------------------- /src/op.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/opa.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/optipng.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/ -?, -h, -help\s\+\(.*\)$/-?, -help \1\n -h \1/' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_arguments ';;' 'files...' | \ 10 | _patch_table_dedup_options '-o7' 11 | } 12 | -------------------------------------------------------------------------------- /src/osqueryi.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type | \ 3 | _patch_table_edit_options \ 4 | '--disable_tables;*,[`_choice_table`]' \ 5 | '--enable_tables;*,[`_choice_table`]' \ 6 | 7 | } 8 | 9 | _choice_table() { 10 | osqueryi --L | sed -n 's/^\s*=> \(\S\+\).*/\1/p' 11 | } 12 | -------------------------------------------------------------------------------- /src/ouch.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | 'output(output-file)' \ 4 | 'archives(archive-files...)' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/oxlint.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--allow;*[`_choice_rule`]' \ 4 | '--config()' \ 5 | '--deny;*[`_choice_rule`]' \ 6 | '--tsconfig()' \ 7 | '--warn;*[`_choice_rule`]' \ 8 | 9 | } 10 | 11 | _choice_rule() { 12 | data="$(oxlint --rules)" 13 | echo "$data" | sed -n 's/## \(\S\+\).*/\L\1/p' 14 | echo "$data" | sed -n 's/^| \([a-z][a-z0-9-]\+\).*/\1/p' 15 | } 16 | -------------------------------------------------------------------------------- /src/packer.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -gt 2 ]]; then 3 | :; 4 | else 5 | $@ --help 6 | fi 7 | } 8 | -------------------------------------------------------------------------------- /src/parallel.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/--colsep regexp/--colsep /' \ 5 | -e 's/--slf ../--slf <..>/' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/patch.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--read-only;[ignore|warn|fail]' \ 4 | '--reject-format;[context|unified]' \ 5 | '--version-control;[simple|numbered|existing]' \ 6 | | \ 7 | _patch_table_edit_arguments ';;' 'ORIGINFILE' 'PATCHFILE' 8 | } 9 | -------------------------------------------------------------------------------- /src/pathchk.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'FILES...' 3 | } 4 | -------------------------------------------------------------------------------- /src/peco.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--buffer-size()' \ 4 | '--exec;[`_module_os_command`]' \ 5 | '--initial-filter()' \ 6 | '--initial-index()' \ 7 | '--initial-matcher()' \ 8 | '--layout;[top-down|bottom-up]' \ 9 | '--on-cancel;[success|error]' \ 10 | '--prompt()' \ 11 | '--query()' \ 12 | '--rcfile()' \ 13 | '--selection-prefix()' \ 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/pee.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments \ 7 | ';;' \ 8 | 'command;[`_module_os_command`]' \ 9 | 'args;~[`_module_os_command_args`]' \ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/perl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/^ -F/ -F /' \ 5 | -e 's/^ -I/ -I /' \ 6 | -e '/^ -\[/ d' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_edit_options \ 12 | '-0;-*' \ 13 | '-C;-*' \ 14 | '-D;-*' \ 15 | '-F;-*' \ 16 | '-I;-*' \ 17 | '-V;-*' \ 18 | '-d;-*' \ 19 | '-i;-*' \ 20 | '-l;-*' \ 21 | '-x;-*' \ 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/pg_dumpall.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--database;[`_choice_database`]' \ 4 | '--dbname;[`_choice_database`]' \ 5 | '--host;[`_module_os_hostname`]' \ 6 | '--username;[`_choice_user`]' \ 7 | 8 | } 9 | 10 | _choice_database() { 11 | psql -AtqwlF \t 2>/dev/null | gawk 'NF > 1 { print $1 }' 12 | } 13 | 14 | _choice_user() { 15 | psql -Atqwc 'select usename from pg_user' template1 2>/dev/null 16 | } 17 | -------------------------------------------------------------------------------- /src/php.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 3 | } 4 | -------------------------------------------------------------------------------- /src/phpunit.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options \ 3 | '--columns' \ 4 | | \ 5 | _patch_table_edit_options \ 6 | '--group;[`_choice_group`]' \ 7 | '--testsuite;[`_choice_suite`]' \ 8 | 9 | } 10 | 11 | _choice_suite() { 12 | phpunit --list-groups | tail -n +4 | sed -e 's/^\s*- //' -e 's/.$//' 13 | } 14 | 15 | _choice_group() { 16 | phpunit --list-suites | tail -n +4 | sed -e 's/^\s*- //' -e 's/.$//' 17 | } 18 | -------------------------------------------------------------------------------- /src/pidof.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-o;[`_module_os_pid`]' \ 8 | | \ 9 | _patch_table_edit_arguments \ 10 | 'program-name;[`_module_os_command`]' \ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/pinky.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'user;[`_module_os_user`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/pip3.sh: -------------------------------------------------------------------------------- 1 | pip.sh -------------------------------------------------------------------------------- /src/pipx.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/pmap.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'pid;*[`_module_os_pid`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/pocketbase.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/pod.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/^\s*+ / /' \ 5 | -e 's/^\s*\$ / /' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/poff.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments 'provider;[`_choice_provider`]' 7 | } 8 | 9 | _choice_provider() { 10 | find /etc/ppp/peers/ -type f -printf '%f\n' 11 | } 12 | -------------------------------------------------------------------------------- /src/pon.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h | sed '/^\s*-/ s/|--/, --/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments 'provider;[`_choice_provider`]' 7 | } 8 | 9 | _choice_provider() { 10 | find /etc/ppp/peers/ -type f -printf '%f\n' 11 | } 12 | -------------------------------------------------------------------------------- /src/pop.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/pr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/+FIRST_PAGE\[:LAST_PAGE\], //' \ 5 | -e 's/-COLUMN, //' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/printenv.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'variable;[`_choice_env_var`]' 3 | } 4 | 5 | _choice_env_var() { 6 | env | _argc_util_transform format== 7 | } 8 | -------------------------------------------------------------------------------- /src/procs.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--insert;[`_choice_kind`]' \ 4 | '--only;[`_choice_kind`]' \ 5 | '--sorta;[`_choice_kind`]' \ 6 | '--sortd;[`_choice_kind`]' \ 7 | 8 | } 9 | 10 | _choice_kind() { 11 | printf "%s\n" PID User TTY MEM Time Command 12 | } 13 | -------------------------------------------------------------------------------- /src/pry.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--context()' \ 4 | '--disable-plugin()' \ 5 | '--exec()' \ 6 | '--gem()' \ 7 | '--require()' \ 8 | '--select-plugin()' \ 9 | '-I()' \ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/pstree.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--highlight-pid;[`_module_os_pid`]' \ 4 | | \ 5 | _patch_table_edit_arguments 'pid-user;[`_choice_pid_user`]' 6 | 7 | } 8 | 9 | _choice_pid_user() { 10 | _module_os_pid 11 | _module_os_user 12 | } 13 | -------------------------------------------------------------------------------- /src/ptx.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed -e 's/, --format=roff//' -e 's/, --format=tex//' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options '' ';;' '--format;[roff|tex]' | \ 7 | _patch_table_edit_arguments ';;' 'FILES...' 8 | } 9 | -------------------------------------------------------------------------------- /src/pv.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--remote;[`_choice_pid`]' \ 4 | 5 | } 6 | 7 | _choice_pid() { 8 | _module_os_pid | sed -n '/\tpv$/ p' 9 | } 10 | -------------------------------------------------------------------------------- /src/pwd.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/^ //' 3 | } 4 | -------------------------------------------------------------------------------- /src/pyright.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--level;[error|warning]' \ 4 | '--pythonplatform;[Darwin|Linux|Windows]' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/python3.sh: -------------------------------------------------------------------------------- 1 | python.sh -------------------------------------------------------------------------------- /src/qrencode.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed -e '/^ -t / {N; s/-t .*\n /-t/g}' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--level;[L|M|Q|H]' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/rake.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'target;*[`_choice_target`]' 3 | } 4 | 5 | _choice_target() { 6 | rake -T | sed -n 's/rake \(\S\+\)\s*# \(.*\)/\1\t\2/p' 7 | } 8 | -------------------------------------------------------------------------------- /src/ranger.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--cmd;[`_module_os_command`]' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/rbenv.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | if [[ ${#argc__args[@]} -eq 2 ]]; then 11 | output="$(rbenv commands)" 12 | else 13 | output="$(rbenv completions "${argc__args[@]:1}")" 14 | fi 15 | if [[ -z "$output" ]]; then 16 | _argc_util_comp_path 17 | return 18 | fi 19 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 20 | } 21 | -------------------------------------------------------------------------------- /src/rclone.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/recode.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/, --sequence=\S\+ / /' \ 5 | 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_arguments ';;' 10 | } 11 | -------------------------------------------------------------------------------- /src/redis-cli.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--cluster( )' \ 4 | | \ 5 | _patch_table_edit_arguments ';;' 'cmd;[`_choice_cmd`]' 'args...' 6 | } 7 | 8 | _choice_cmd() { 9 | redis-cli command | \ 10 | gawk ' 11 | BEGIN { 12 | cmd = 1 13 | } 14 | { 15 | if (cmd == 1 && match($0, /^[a-z]/)) { 16 | print $0 17 | cmd = 0 18 | } else if (cmd == 0 && match($0, /^@/)) { 19 | cmd = 1 20 | } 21 | }' 22 | } 23 | -------------------------------------------------------------------------------- /src/replibyte.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_help $@ | sed 's/replibyte --config //' 3 | } 4 | -------------------------------------------------------------------------------- /src/rga.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | rga --rg-help | \ 3 | sed \ 4 | -e '/-V, --version/ d' \ 5 | -e '/-h, --help/ d' \ 6 | 7 | rga --help | \ 8 | sed \ 9 | -e '/^\s*-h / d' 10 | } 11 | 12 | _patch_table() { 13 | _patch_table_edit_arguments 'pattern;[`_choice_pattern`]' 14 | } 15 | 16 | _choice_pattern() { 17 | if [[ -n "$argc_regexp" ]] \ 18 | || [[ -n "$argc_file" ]] \ 19 | || [[ -n "$argc_files" ]] \ 20 | ; then 21 | _argc_util_comp_path 22 | fi 23 | } 24 | -------------------------------------------------------------------------------- /src/rgrep.sh: -------------------------------------------------------------------------------- 1 | grep.sh -------------------------------------------------------------------------------- /src/rhash.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^\s*-/ s/,\s\{2,\}-/, -/' 3 | } 4 | -------------------------------------------------------------------------------- /src/rich.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | _patch_help_strip_ansi | \ 4 | sed \ 5 | -e '/╭\|╰/ d' \ 6 | -e 's/^│//' \ 7 | -e 's/\s\+│$//' \ 8 | -e 's/-j --emoji/ --emoji/' \ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/rifle.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '-f;[fork|root|terminal]' \ 4 | '-w;[`_module_os_command`]' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/rm.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/commands:$/ a\n' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_options '--interactive;[`_choice_interactive`]' 8 | } 9 | 10 | _choice_interactive() { 11 | cat <<-'EOF' 12 | always prompt before every removal 13 | once prompt when removing many files 14 | EOF 15 | } 16 | -------------------------------------------------------------------------------- /src/rollup.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | '/^Examples:/,$ d' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/rye.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | if [[ "$*" == "rye toolchain remove" ]]; then 3 | _patch_table_edit_arguments 'version;[`_choice_toolchain`]' 4 | elif [[ "$*" == "rye tools uninstall" ]] \ 5 | || [[ "$*" == "rye uninstall" ]] \ 6 | ; then 7 | _patch_table_edit_arguments 'name;[`_choice_tool`]' 8 | else 9 | cat 10 | fi 11 | } 12 | 13 | _choice_toolchain() { 14 | rye toolchain list | sed -n 's/^\(\S\+\) (\(.*\)).*/\1\t\2/p' 15 | } 16 | 17 | _choice_tool() { 18 | rye tools list 19 | } 20 | -------------------------------------------------------------------------------- /src/sc-im.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--newline_action;[j|l]' \ 4 | '--txtdelim;[`_choice_txtdelim`]' \ 5 | | \ 6 | _patch_table_edit_arguments ';;' file 7 | } 8 | 9 | _choice_txtdelim() { 10 | echo ',' 11 | echo ';' 12 | echo '\t' 13 | echo '|' 14 | } 15 | -------------------------------------------------------------------------------- /src/scc.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type | \ 3 | _patch_table_edit_arguments ';;' 'paths...' 4 | } 5 | -------------------------------------------------------------------------------- /src/scons.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 3 | } 4 | -------------------------------------------------------------------------------- /src/scrot.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | sed 's/\([A-Z]\+ | [A-Z]\+\)/<\1>/' 4 | } 5 | 6 | _patch_table() { 7 | _patch_table_add_metadata combine-shorts | \ 8 | _patch_table_edit_arguments ';;' 'file' 9 | } 10 | -------------------------------------------------------------------------------- /src/scrypt.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -eq 1 ]]; then 3 | _patch_help_run_man $@ 4 | fi 5 | } 6 | 7 | _patch_table() { 8 | _patch_table_edit_options \ 9 | '--passphrase;[`_choice_passphrase`]' \ 10 | 11 | } 12 | 13 | _choice_passphrase() { 14 | cat <<-'EOF' | _argc_util_comp_kv : 15 | dev=tty-stdin,stdin-once,tty-once 16 | env=`_choice_env_key` 17 | file=__argc_value=path 18 | EOF 19 | } 20 | 21 | _choice_env_key() { 22 | env | sed 's/=/\t/' 23 | } 24 | -------------------------------------------------------------------------------- /src/sed.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'FILES...' 3 | } 4 | -------------------------------------------------------------------------------- /src/serve.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--config(file:.json)' \ 4 | '--ssl-cert(path)' \ 5 | '--ssl-key(path)' \ 6 | '--ssl-pass(path)' \ 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/sftpgo.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/shar.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | sed 's/ -v.*/ -v, --version {v|c|n}/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--compactor;[`_module_os_command`]' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/shellcheck.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e '/^\s*-/ s/^\s\+--/ --/' \ 5 | -e '/^\s*-/ s/\(\S\)\s\+--/\1 --/' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options \ 11 | '--enable;*,[`_choice_check`]' \ 12 | 13 | } 14 | 15 | _choice_check() { 16 | echo -e "all\tEnables all optional checks" 17 | shellcheck --list-optional | \ 18 | sed -n '/^name:/ {N;s/^name:\s\+\(\S\+\)\ndesc:\s\+\(.*\)/\1\t\2/p}' 19 | } 20 | -------------------------------------------------------------------------------- /src/shfmt.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--language-dialect;[bash|posix|mksh|bats]' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/shred.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--remove;[`_choice_remove`]' 3 | } 4 | 5 | _choice_remove() { 6 | cat <<-'EOF' 7 | unlink use standard unlink call 8 | wipe like unlink, but obfuscate bytes in name first 9 | wipesync like wipe, but sync each obfuscated byte to disk 10 | EOF 11 | } 12 | -------------------------------------------------------------------------------- /src/silicon.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--theme;[`_choice_theme`]' \ 4 | 5 | } 6 | 7 | _choice_theme() { 8 | silicon --list-themes 9 | } 10 | -------------------------------------------------------------------------------- /src/slabtop.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--sort;[`_choice_sort`]' \ 4 | 5 | } 6 | 7 | _choice_sort() { 8 | slabtop -h | \ 9 | sed -n '/The following are valid sort criteria:/,/^\s*$/ s/^ \(\S\): \(.*\)/\1\t\2/p' 10 | } 11 | -------------------------------------------------------------------------------- /src/slrn.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/^\(-\S\)\[-\]\s*\[.*\]/\1 /' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts 7 | } 8 | -------------------------------------------------------------------------------- /src/source-highlight.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--out-format;[`_choice_out_format`]' \ 8 | '--src-lang;[`_choice_src_lang`]' \ 9 | 10 | } 11 | 12 | _choice_src_lang() { 13 | source-highlight --lang-list | sed -n 's/ = /\t/p' 14 | } 15 | 16 | _choice_out_format() { 17 | source-highlight --outlang-list | sed -n 's/ = /\t/p' 18 | } 19 | -------------------------------------------------------------------------------- /src/sqlfluff.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--dialect;[`_choice_dialect`]' \ 4 | '--exclude-rules;*,[`_choice_rule`]' \ 5 | '--rules;*,[`_choice_rule`]' \ 6 | 7 | } 8 | 9 | _choice_rule() { 10 | sqlfluff rules | sed -n 's/^\(\S\+\): \(.*\)$/\1\t\2/p' 11 | } 12 | 13 | _choice_dialect() { 14 | sqlfluff dialects | sed -n 's/^\(\S\+\):.*/\1/p' 15 | } 16 | -------------------------------------------------------------------------------- /src/ssh-agent.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | -------------------------------------------------------------------------------- /src/ssh-copy-id.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | sed -n '/^DESCRIPTION/, /^EXAMPLES/ {//!p}' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-o' \ 8 | '-p' \ 9 | ';;' \ 10 | '-o;[`_module_ssh_option`];Can be used to pass options to ssh in the format used in ssh_config' \ 11 | '-p();;Port to connect to on the remote host.' \ 12 | | \ 13 | _patch_table_edit_arguments ';;' 'host;[`_module_ssh_host`]' 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/ssh3.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/stat.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/--terse is/The --terse is/' \ 5 | -e 's/--terse --file-system is/The --terse --file-system is/' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_options '--cached;[`_choice_cached`]' 11 | } 12 | 13 | _choice_cached() { 14 | cat <<-'EOF' 15 | always use cached attributes if available 16 | never try to synchronize with the latest attributes 17 | default leave it up to the underlying file system 18 | EOF 19 | } 20 | -------------------------------------------------------------------------------- /src/stdbuf.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'command;[`_module_os_command`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/strip.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--input-target;[`_choice_target`]' \ 4 | '--output-target;[`_choice_target`]' \ 5 | '--target;[`_choice_target`]' \ 6 | 7 | } 8 | 9 | _choice_target() { 10 | printf "%s\n" elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 pei-i386 pe-x86-64 \ 11 | pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big \ 12 | pe-bigobj-x86-64 pe-i386 srec symbolsrec verilog tekhex binary ihex plugin 13 | } 14 | -------------------------------------------------------------------------------- /src/stripe.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/stty.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | echo "Usage: stty [options] FILE" 3 | $@ --help | sed -n '/Mandatory arguments to long/, /^$/ p' 4 | } 5 | -------------------------------------------------------------------------------- /src/subl.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed '/^\s*-/ {s/ or -/ -/;s/: / /;}' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'paths...' 7 | } 8 | -------------------------------------------------------------------------------- /src/sudoedit.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/-h, --help/ --help/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_add_metadata combine-shorts | \ 7 | _patch_table_edit_options \ 8 | '--group;[`_module_os_group`]' \ 9 | '--user;[`_module_os_user`]' \ 10 | | \ 11 | _patch_table_edit_arguments ';;' 'files...' 12 | } 13 | -------------------------------------------------------------------------------- /src/supabase.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/svgo.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--config()' \ 4 | '--datauri;[base64|enc|unenc]' \ 5 | '--eol;[lf|crlf]' \ 6 | '--folder()' \ 7 | '--input(...)' \ 8 | '--output(...)' \ 9 | | \ 10 | _patch_table_edit_arguments 'input(input-file...)' 11 | } 12 | -------------------------------------------------------------------------------- /src/swift.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "swift" ]]; then 3 | $@ --help | \ 4 | sed \ 5 | -e '/Subcommands:/,$ s/^\s\+swift \(\S\+\) / \1 /' \ 6 | 7 | elif [[ "$*" == "swift repl" ]]; then 8 | :; 9 | 10 | else 11 | $@ --help 12 | fi 13 | } 14 | 15 | _patch_table() { 16 | if [[ "$*" == "swift package resolve" ]]; then 17 | _patch_table_dedup_options \ 18 | ';;' \ 19 | '--version' \ 20 | 21 | else 22 | cat 23 | fi 24 | } 25 | -------------------------------------------------------------------------------- /src/sysctl.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'key-value;*[`_choice_key_value`]' 3 | } 4 | 5 | _choice_key_value() { 6 | _argc_util_mode_kv '=' 7 | if [[ -z "$argc__kv_prefix" ]]; then 8 | sysctl --all | gawk -F ' = ' '{print $1 "=\0\t" $2}' 9 | else 10 | sysctl --values $argc__kv_key 11 | fi 12 | } 13 | -------------------------------------------------------------------------------- /src/t-rec.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'command;[`_module_os_command`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/tail.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--follow;:[name|descriptor]' \ 4 | '--pid;[`_module_os_pid`]' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/tcpdump.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | sed '/^\s*-/ {:x;N;s/\n\s*-/, -/;t x;}' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--interface;[`_choice_tcp_interface`]' \ 8 | 9 | } 10 | 11 | _choice_tcp_interface() { 12 | tcpdump --list-interfaces | sed -n 's/\.\(\S\+\)\s*\((\(.*\))\)\?.*$/\1\t\3/p' 13 | } 14 | -------------------------------------------------------------------------------- /src/tcsh.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/^-Dname\[=value\]/-D name[=value]/' \ 5 | -e '/^-/ s/^\(\S\+\) \(\S\+\)/\1 [\2]/' \ 6 | 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_add_metadata combine-shorts 11 | } 12 | -------------------------------------------------------------------------------- /src/tee.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--output-error;[`_choice_output_error`]' 3 | } 4 | 5 | _choice_output_error() { 6 | cat <<-'EOF' 7 | warn diagnose errors writing to any output 8 | warn-nopipe diagnose errors writing to any output not a pipe 9 | exit exit on error writing to any output 10 | exit-nopipe exit on error writing to any output not a pipe 11 | EOF 12 | } 13 | -------------------------------------------------------------------------------- /src/telnet.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | echo "Usage: telnet [options] [host]" 3 | _patch_help_run_man telnet | sed -n '/^DESCRIPTION/, /Protocol:/ {//!p}' 4 | } 5 | 6 | _patch_table() { 7 | _patch_table_add_metadata combine-shorts | \ 8 | _patch_table_edit_options '-l;[`_module_os_user`]' 9 | } 10 | -------------------------------------------------------------------------------- /src/terragrunt.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/terramate.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/tex.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_dedup_options \ 7 | '-src-specials' \ 8 | | \ 9 | _patch_table_edit_arguments ';;' 'files...' 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/tfsec.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/tig.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | cat <<-'EOF' 3 | Usage: tig [args...] 4 | Options: 5 | -C Start in 6 | EOF 7 | } 8 | 9 | _patch_table() { 10 | _patch_table_edit_arguments 'cmd;[`_choice_cmd`]' 'args;~[`_choice_args`]' 11 | } 12 | 13 | _choice_cmd() { 14 | tig --help | sed -n 's/^\s*or: tig \([a-z]\S\+\).*/\1/p' 15 | } 16 | 17 | _choice_args() { 18 | _argc_util_comp_subcommand 0 git 19 | } 20 | -------------------------------------------------------------------------------- /src/time.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_arguments \ 4 | 'command;[`_module_os_command`]' \ 5 | 'arg;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/timeout.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | 'command;[`_module_os_command`]' \ 4 | 'arg;~[`_module_os_command_args`]' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/tin.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_options \ 4 | '-g;[`_choice_serv`]' 5 | } 6 | 7 | _choice_serv() { 8 | cat "$$HOME/.tin/newsrctable" | \ 9 | sed -n '/^#/ d; s/\(\S\+\) .*/\1/p' 10 | } 11 | -------------------------------------------------------------------------------- /src/tinygo.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | \ 3 | sed 's/^ \([a-z]\S\+\): \+\(.*\)$/ \1 \2/' 4 | } 5 | 6 | _patch_table() { 7 | _patch_table_detect_value_type | \ 8 | _patch_table_edit_options \ 9 | '-opt;[0|1|2|s|z]' \ 10 | '-target;[`_choice_target`]' \ 11 | 12 | } 13 | 14 | _choice_target() { 15 | tinygo targets 16 | } 17 | -------------------------------------------------------------------------------- /src/tkn.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/tldr.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--theme;[simple|base16|ocean]' \ 4 | | \ 5 | _patch_table_edit_arguments ';;' 'cmd;[`_choice_cmd`]' 6 | } 7 | 8 | _choice_cmd() { 9 | tldr --list | sed 's/, /\n/g' 10 | } 11 | -------------------------------------------------------------------------------- /src/tload.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'tty;[`_module_os_tty`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/tmate.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_arguments ';;' 'command;~[`_choice_command`]' 4 | } 5 | 6 | _choice_command() { 7 | _argc_util_comp_subcommand 0 tmux 8 | } 9 | -------------------------------------------------------------------------------- /src/tmuxinator.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | len="${#argc__args[@]}" 11 | if [[ "$len" -eq 2 ]]; then 12 | tmuxinator commands 13 | tmuxinator completions start 14 | else 15 | tmuxinator completions "${argc__args[@]:1:$((len - 2))}" 16 | fi 17 | } 18 | -------------------------------------------------------------------------------- /src/tokei.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'path...' 3 | } 4 | -------------------------------------------------------------------------------- /src/torsocks.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'command;[`_module_os_command`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/touch.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--time;[`_choice_time`]' 3 | } 4 | 5 | _choice_time() { 6 | printf "%s\n" access atime modify mtime use 7 | } 8 | -------------------------------------------------------------------------------- /src/tput.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ $# -eq 1 ]]; then 3 | $@ --help 2>&1 | sed 's/<)' \ 4 | '--dist()' \ 5 | '--role;[`_choice_role`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/tsc.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed -n '/^-/,/^$/ {s/^\s*\one [^:]\+: \(.*\)$/[possible values: \1]/; s/^/ /; s/^\s\+-/ -/; p}' 4 | } 5 | 6 | _patch_table() { 7 | _patch_table_edit_arguments ';;' 'paths...' 8 | } 9 | -------------------------------------------------------------------------------- /src/uconv.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed -n '/^Options:/,$ s/^.\{8\}/ /p' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--from-callback;[`_choice_callback`]' \ 8 | '--to-callback;[`_choice_callback`]' \ 9 | | \ 10 | _patch_table_edit_arguments ';;' 'file...' 11 | 12 | } 13 | 14 | _choice_callback() { 15 | printf "%s\n" substitute skip stop escape escape-icu escape-java escape-c escape-xml escape-xml-hex escape-xml-dec escape-unicode 16 | } 17 | -------------------------------------------------------------------------------- /src/ug.sh: -------------------------------------------------------------------------------- 1 | ugrep.sh -------------------------------------------------------------------------------- /src/unexpand.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options --tabs 3 | } 4 | -------------------------------------------------------------------------------- /src/uniq.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--all-repeated;[none|prepend|separate]' \ 4 | '--group;[append|both|prepend|separate]' \ 5 | | \ 6 | _patch_table_edit_arguments ';;' 'FILE1' 'FILE2' 7 | } 8 | -------------------------------------------------------------------------------- /src/unison.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -help 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-backuploc;[local|central]' \ 8 | '-doc;[`_choice_doc`]' \ 9 | '-fastcheck;[true|false|default]' \ 10 | '-ignorecase;[true|false|default]' \ 11 | '-ui;[text|graphic]' \ 12 | 13 | } 14 | 15 | _choice_doc() { 16 | unison -doc topics | \ 17 | sed -n 's/^ \+\(\S\+\) \(.*\)/\1\t\2/p' 18 | } 19 | -------------------------------------------------------------------------------- /src/unlink.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'FILE' 3 | } 4 | -------------------------------------------------------------------------------- /src/unzip.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | _patch_help_split_2cols 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options '-d()' '-x()' | \ 7 | _patch_table_edit_arguments ';;' 'file' 'contents;*[`_choice_content`]' 8 | } 9 | 10 | _choice_content() { 11 | unzip -l "$argc_file" | gawk '{print $4}' | tail -n +4 | _argc_util_comp_parts / 12 | } 13 | -------------------------------------------------------------------------------- /src/upower.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--show-info;[`_choice_power_device`]' | \ 3 | _patch_table_edit_arguments ';;' 4 | } 5 | 6 | _choice_power_device() { 7 | upower --enumerate 8 | } 9 | -------------------------------------------------------------------------------- /src/vault.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/vdir.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options --indicator-style \ 3 | | \ 4 | _patch_table_edit_options \ 5 | '--color;[`_choice_color`]' \ 6 | '--format;[`_choice_format`]' \ 7 | '--time;[`_choice_time`]' \ 8 | 9 | } 10 | 11 | _choice_color() { 12 | printf "%s\n" auto never always 13 | } 14 | 15 | _choice_format() { 16 | printf "%s\n" across commas horizontal long single-column verbose vertical 17 | } 18 | 19 | _choice_time() { 20 | printf "%s\n" full-iso long-iso iso locale 21 | } 22 | -------------------------------------------------------------------------------- /src/vela.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/vhs.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_detect_value_type 3 | } 4 | -------------------------------------------------------------------------------- /src/vi.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if command -v vim.tiny > /dev/null; then 3 | text="$(vim.tiny --help)" 4 | else 5 | text="$($@ --help)" 6 | fi 7 | 8 | echo "$text" | \ 9 | sed \ 10 | -e '/-r (with file name)/ d' \ 11 | -e '/^ \+-s/ d' \ 12 | -e '/^\s*-/ s/\s\+or\s\+-/ -/' 13 | 14 | } 15 | 16 | _patch_table() { 17 | _patch_table_edit_arguments ';;' 'files...' 18 | } 19 | -------------------------------------------------------------------------------- /src/vimdiff.sh: -------------------------------------------------------------------------------- 1 | vim.sh -------------------------------------------------------------------------------- /src/visudo.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts | \ 3 | _patch_table_edit_options '--file()' | \ 4 | _patch_table_edit_arguments ';;' 5 | } 6 | -------------------------------------------------------------------------------- /src/vite.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/\[\(string\|boolean\|number\)\] //' \ 5 | -e 's/\[\(string\|boolean\|number\) | \(string\|boolean\|number\)\] //' \ 6 | -e 's/\[root\]/[root-path]/' \ 7 | 8 | } 9 | 10 | _patch_table() { 11 | if [[ "$*" == "vite" ]]; then 12 | _patch_table_edit_arguments ';;' 'root-path' 13 | else 14 | cat 15 | fi 16 | } 17 | -------------------------------------------------------------------------------- /src/vivid.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'theme;[`_choice_theme`]' 3 | } 4 | 5 | _choice_theme() { 6 | vivid themes 7 | } 8 | -------------------------------------------------------------------------------- /src/volta.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | if [[ "$*" == "volta uninstall" ]]; then 3 | _patch_table_edit_arguments 'tool;[`_choice_tool`]' 4 | 5 | elif [[ "$*" == "volta run" ]]; then 6 | _patch_table_edit_arguments \ 7 | 'command;[`_module_os_command`]' \ 8 | 'args;~[`_module_os_command_args`]' \ 9 | 10 | else 11 | cat 12 | fi 13 | } 14 | 15 | _choice_tool() { 16 | volta list --format plain | gawk '{print $2}' 17 | } 18 | -------------------------------------------------------------------------------- /src/vpnc.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | \ 3 | gawk '{ 4 | printLine = 1 5 | if (match($0, /^\s*conf-variable:/)) { 6 | printLine = 0 7 | } else if (match($0, /^\s*-/)) { 8 | if (match($0, /<[A-Za-z0-9_-]+(\x2f[A-Za-z0-9_-]+)+>/) && !match($0, /ip\x2fhostname/)) { 9 | gsub("<", "{") 10 | gsub(">", "}") 11 | gsub("/", "|") 12 | } 13 | } 14 | if (printLine) { 15 | print $0 16 | } 17 | }' 18 | } 19 | -------------------------------------------------------------------------------- /src/vultr.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/wasm-bindgen.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'paths...' 3 | } 4 | -------------------------------------------------------------------------------- /src/wasm-opt.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_dedup_options \ 3 | '-esw' \ 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/wasm-tools.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--output(file)' \ 4 | | \ 5 | _patch_table_edit_arguments \ 6 | 'input(input-file)' \ 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/wasmedge.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_help $@ | _patch_help_strip_ansi | sed 's/^\(-\S\)|/\1, /' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--dir()' \ 8 | '--env()' \ 9 | '--forbidden-plugin()' \ 10 | '--gas-limit()' \ 11 | '--memory-page-limit()' \ 12 | '--optimize()' \ 13 | '--time-limit()' \ 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/watch.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments ';;' 'command;[`_module_os_command`]' 3 | } 4 | -------------------------------------------------------------------------------- /src/waypoint.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_argcomplete`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/wc.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options '--files0-from()' 3 | } 4 | -------------------------------------------------------------------------------- /src/whatis.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments 'keyword;[`_choice_target`]' 3 | } 4 | 5 | _choice_target() { 6 | man -k "^$ARGC_CWORD" | sed 's/^'$prefix'\(\S\+\) \?(.*) \+- \(.*\)$/\1\t\2/' 7 | } 8 | -------------------------------------------------------------------------------- /src/which.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | cat <<-'EOF' 3 | Options: 4 | -a print all matching pathnames of each argument 5 | EOF 6 | } 7 | 8 | _patch_table() { 9 | _patch_table_edit_arguments ';;' 'command;[`_module_os_command`]' 10 | } 11 | -------------------------------------------------------------------------------- /src/whois.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_add_metadata combine-shorts 3 | } 4 | -------------------------------------------------------------------------------- /src/windows/winget.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | line="${argc__args[*]}" 11 | output="$("${argc__args[0]}" complete --word="${argc__args[-1]}" --position "${#line}" --commandline "$line")" 12 | if [[ -z "$output" ]]; then 13 | _argc_util_comp_path 14 | return 15 | fi 16 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 17 | } 18 | -------------------------------------------------------------------------------- /src/wp.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | line="${argc__args[*]}" 11 | output="$(wp cli completions --line="$line" --point="${#line}")" 12 | if [[ -z "$output" ]] || [[ "$output" =~ \\s* ]]; then 13 | _argc_util_comp_path 14 | return 15 | fi 16 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 17 | } 18 | -------------------------------------------------------------------------------- /src/wrangler.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | help_text="$($@ --help | _patch_help_preprocess_yargs)" 3 | if [[ "$*" == "wrangler r2 object put" ]]; then 4 | echo "$help_text" | sed 's/-e, --expires/ --expires/' 5 | else 6 | echo "$help_text" 7 | fi 8 | } 9 | 10 | _patch_table() { 11 | _patch_table_detect_value_type 12 | } 13 | -------------------------------------------------------------------------------- /src/wrk.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | sed 's/\s\+\(<\S\+>\)/ \1/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '--header;*[`_module_http_header`]' \ 8 | '--script()' \ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/xargs.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_arguments \ 3 | ';;' \ 4 | 'command;[`_module_os_command`]' \ 5 | 'args;~[`_module_os_command_args`]' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/xc.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_compline`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/xclip.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -help 2>&1 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-selection;[primary|secondary|clipboard|buffer-cut];selection to access' \ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/xcodeproj.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | \ 3 | sed \ 4 | -e 's/^\s*+ / /' \ 5 | -e 's/^\s*\$ / /' \ 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/xmake.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_choice_delegate`]' 7 | } 8 | 9 | _choice_delegate() { 10 | line="${argc__args[*]}" 11 | output="$(XMAKE_SKIP_HISTORY=1 XMAKE_ROOT=y xmake lua private.utils.complete 0 nospace "$line")" 12 | if [[ -z "$output" ]]; then 13 | _argc_util_comp_path 14 | return 15 | fi 16 | echo "$output" | sed 's|\([=/:]\)$|\1\x00|' 17 | } 18 | -------------------------------------------------------------------------------- /src/xsv.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | table="$( \ 3 | _patch_table_edit_arguments 'input(input-file)' \ 4 | )" 5 | if [[ "$*" == "xsv cat" ]]; then 6 | echo "$table" | \ 7 | _patch_table_edit_arguments ';;' 'cmd;[rows|columns]' 'input-file...' 8 | 9 | else 10 | echo "$table" 11 | fi 12 | } 13 | -------------------------------------------------------------------------------- /src/xxd.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_help $@ | sed '/^\s*-r -s off/ d' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'intpufile' 'outputfile' 7 | } 8 | -------------------------------------------------------------------------------- /src/xxh128sum.sh: -------------------------------------------------------------------------------- 1 | xxhsum.sh -------------------------------------------------------------------------------- /src/xxh32sum.sh: -------------------------------------------------------------------------------- 1 | xxhsum.sh -------------------------------------------------------------------------------- /src/xxh64sum.sh: -------------------------------------------------------------------------------- 1 | xxhsum.sh -------------------------------------------------------------------------------- /src/xxhsum.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>&1 | sed '/^\s*-/ s/-\(\S\)#/-\1-<#>/' 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_dedup_options \ 7 | '-b' \ 8 | | \ 9 | _patch_table_edit_options \ 10 | '-H;[`_choice_algorithm`]' \ 11 | | \ 12 | _patch_table_edit_arguments 'files...' 13 | } 14 | 15 | _choice_algorithm() { 16 | printf "%s\n" 0 32 64 128 17 | } 18 | -------------------------------------------------------------------------------- /src/yj.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ -h | \ 3 | sed \ 4 | -e '/^\s*-x/,/^\s*$/ {//d; s/^\s*//;s/ = / /;}' \ 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/yomo.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | :; 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_arguments ';;' 'words;~[`_module_bridge_corba`]' 7 | } 8 | -------------------------------------------------------------------------------- /src/you-get.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help 2>/dev/null | sed 's/ or USERNAME:PASSWORD@HOST:PORT//' 3 | } 4 | -------------------------------------------------------------------------------- /src/yq.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$*" == "yq completion" ]]; then 3 | echo "Usage: yq completion (bash|zsh|fish|powershell)" 4 | 5 | elif [[ "$*" == "yq shell-completion" ]]; then 6 | :; 7 | 8 | else 9 | $@ --help 10 | fi 11 | } 12 | 13 | _patch_table() { 14 | _patch_table_edit_options \ 15 | '--from-file(file)' \ 16 | '--split-exp-file(file)' \ 17 | | \ 18 | _patch_table_edit_arguments \ 19 | 'expression' \ 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/zathura.sh: -------------------------------------------------------------------------------- 1 | _patch_table() { 2 | _patch_table_edit_options \ 3 | '--synctex-pid;[`_module_os_pid`]' \ 4 | | \ 5 | _patch_table_edit_arguments ';;' files... 6 | } 7 | -------------------------------------------------------------------------------- /src/zip.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | $@ --help | _patch_help_split_2cols 3 | } 4 | 5 | _patch_table() { 6 | _patch_table_edit_options \ 7 | '-n()' \ 8 | ';;' \ 9 | '-b()' \ 10 | '-t()' \ 11 | | \ 12 | _patch_table_edit_arguments ';;' '...' 13 | } 14 | -------------------------------------------------------------------------------- /src/zipcloak.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | _patch_help_run_man $@ | sed '/^\s*-/,+1 {N;s/\n\s\+-/, -/;}' 3 | } 4 | -------------------------------------------------------------------------------- /src/zk.sh: -------------------------------------------------------------------------------- 1 | _patch_help() { 2 | if [[ "$#" -eq 1 ]]; then 3 | $@ --help | sed '/^[A-Z][A-Z]/,+2 cCommands:' 4 | else 5 | $@ --help 6 | fi 7 | } 8 | -------------------------------------------------------------------------------- /utils/_modules/oci.sh: -------------------------------------------------------------------------------- 1 | _module_oci_docker_image() { 2 | docker image ls --format '{{.Repository}}={{.Tag}}' | _argc_util_comp_kv : 3 | } 4 | 5 | _module_oci_docker_platform() { 6 | command cat <<-'EOF' 7 | linux/amd64 8 | linux/arm64 9 | linux/ppc64le 10 | linux/s390x 11 | linux/386 12 | linux/arm/v7 13 | linux/arm/v6 14 | EOF 15 | } 16 | 17 | _module_oci_podman_image() { 18 | podman image ls --format '{{.Repository}}={{.Tag}}' | _argc_util_comp_kv : 19 | } --------------------------------------------------------------------------------