mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-22 19:31:57 +00:00
Removed nu_scripts to regenerate subtree
This commit is contained in:
2
dot_config/nushell/nu_scripts/.gitattributes
vendored
2
dot_config/nushell/nu_scripts/.gitattributes
vendored
@@ -1,2 +0,0 @@
|
|||||||
# Example of a `.gitattributes` file which reclassifies `.nu` files as Nushell:
|
|
||||||
*.nu linguist-language=Nushell
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
on:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
env:
|
|
||||||
NUSHELL_CARGO_PROFILE: ci
|
|
||||||
NU_LOG_LEVEL: DEBUG
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
nu-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: "Fetch main branch"
|
|
||||||
run: |
|
|
||||||
git fetch origin main --depth 1
|
|
||||||
- uses: hustcer/setup-nu@v3.9
|
|
||||||
with:
|
|
||||||
version: "*"
|
|
||||||
check-latest: true
|
|
||||||
# features: full # dataframe and extra included
|
|
||||||
- name: toolkit check pr
|
|
||||||
shell: nu {0}
|
|
||||||
# nix STUB_IDE_CHECK when nushell/nushell#12208 fixed
|
|
||||||
run: |
|
|
||||||
use ${{ github.workspace }}/toolkit.nu *
|
|
||||||
STUB_IDE_CHECK=true check pr --and-exit
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
name: Compress Images on Push to main branch
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- '**.jpg'
|
|
||||||
- '**.jpeg'
|
|
||||||
- '**.png'
|
|
||||||
- '**.webp'
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: calibreapp/image-actions
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repo
|
|
||||||
uses: actions/checkout@v4.1.2
|
|
||||||
- name: Compress Images
|
|
||||||
id: calibre
|
|
||||||
uses: calibreapp/image-actions@main
|
|
||||||
with:
|
|
||||||
pngQuality: '90'
|
|
||||||
webpQuality: '90'
|
|
||||||
jpegQuality: '90'
|
|
||||||
compressOnly: true
|
|
||||||
jpegProgressive: false
|
|
||||||
# ignorePaths: 'node_modules/**,build'
|
|
||||||
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
|
|
||||||
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
|
|
||||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Create New Pull Request If Needed
|
|
||||||
if: steps.calibre.outputs.markdown != ''
|
|
||||||
uses: peter-evans/create-pull-request@v6.0.3
|
|
||||||
with:
|
|
||||||
title: Compressed Images
|
|
||||||
branch-suffix: timestamp
|
|
||||||
commit-message: Compressed Images
|
|
||||||
body: ${{ steps.calibre.outputs.markdown }}
|
|
||||||
8
dot_config/nushell/nu_scripts/.gitignore
vendored
8
dot_config/nushell/nu_scripts/.gitignore
vendored
@@ -1,8 +0,0 @@
|
|||||||
.DS_Store
|
|
||||||
|
|
||||||
# ignore the git mailmap file
|
|
||||||
.mailmap
|
|
||||||
|
|
||||||
check-files.nu
|
|
||||||
|
|
||||||
.vscode/
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2021 Nushell Project
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# Nushell Scripts
|
|
||||||
|
|
||||||
This is a place to share Nushell scripts with each other. If you'd like to share your scripts, fork this repository, and [create a PR](https://github.com/nushell/nu_scripts/compare) that adds it to the repo.
|
|
||||||
|
|
||||||
## Sections
|
|
||||||
|
|
||||||
- [aliases](./aliases/)
|
|
||||||
- [benchmarks](./benchmarks/)
|
|
||||||
- [cool-oneliners](./sourced/cool-oneliners/)
|
|
||||||
- [custom-completions](./custom-completions/) - collection of custom completions for external commands.
|
|
||||||
- [custom-menus](./custom-menus/) - collection of custom nushell menus
|
|
||||||
- [example-config](./example-config/)
|
|
||||||
- [nu-hooks](./nu-hooks/)
|
|
||||||
- [modules](./modules/) - This has its dedicated [readme](./modules/README.md)
|
|
||||||
- [nu_101](./sourced/nu_101/) - Beginner introduction to nushell concepts.
|
|
||||||
- [prompt](./modules/prompt/)
|
|
||||||
- [themes](./themes/)
|
|
||||||
|
|
||||||
## Running Scripts
|
|
||||||
|
|
||||||
You can run nushell scripts in a few different ways.
|
|
||||||
|
|
||||||
1. You can type `nu <script name>`.
|
|
||||||
2. From with nushell, you can type `source <script name>` and if the script is just a bunch of commands it will run the script. If the script is a custom command it will load those custom commands into your current scope so you can run them like any other command.
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Custom aliases
|
|
||||||
|
|
||||||
This current directory provides custom aliases. They can be used by importing their exported aliases via:
|
|
||||||
|
|
||||||
```nushell
|
|
||||||
use path/to/<command>/<command>-aliases.nu *
|
|
||||||
```
|
|
||||||
|
|
||||||
With `path/to/<command>` being either the relative path of the file to your current working directory or its absolute path.
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
export alias b = bat
|
|
||||||
export alias bn = bat --number
|
|
||||||
export alias bnl = bat --number --line-range
|
|
||||||
export alias bp = bat --plain
|
|
||||||
export alias bpl = bat --plain --line-range
|
|
||||||
export alias bl = bat --line-range
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
export alias ch = chezmoi
|
|
||||||
export alias chad = chezmoi add
|
|
||||||
export alias chap = chezmoi apply
|
|
||||||
export alias chd = chezmoi diff
|
|
||||||
export alias chda = chezmoi data
|
|
||||||
export alias chs = chezmoi status
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
# docker alias in nushell
|
|
||||||
|
|
||||||
This plugin adds the following aliases:
|
|
||||||
|
|
||||||
| Alias | Command | Description |
|
|
||||||
| ------- | --------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
||||||
| dbl | docker build | Build an image from a Dockerfile |
|
|
||||||
| dcin | docker container inspect | Display detailed information on one or more containers |
|
|
||||||
| dcls | docker container ls | List all the running docker containers |
|
|
||||||
| dclsa | docker container ls -a | List all running and stopped containers |
|
|
||||||
| dib | docker image build | Build an image from a Dockerfile (same as docker build) |
|
|
||||||
| dii | docker image inspect | Display detailed information on one or more images |
|
|
||||||
| dils | docker image ls | List docker images |
|
|
||||||
| dipu | docker image push | Push an image or repository to a remote registry |
|
|
||||||
| dirm | docker image rm | Remove one or more images |
|
|
||||||
| dit | docker image tag | Add a name and tag to a particular image |
|
|
||||||
| dlo | docker container logs | Fetch the logs of a docker container |
|
|
||||||
| dnc | docker network create | Create a new network |
|
|
||||||
| dncn | docker network connect | Connect a container to a network |
|
|
||||||
| dndcn | docker network disconnect | Disconnect a container from a network |
|
|
||||||
| dni | docker network inspect | Return information about one or more networks |
|
|
||||||
| dnls | docker network ls | List all networks the engine daemon knows about, including those spanning multiple hosts |
|
|
||||||
| dnrm | docker network rm | Remove one or more networks |
|
|
||||||
| dpo | docker container port | List port mappings or a specific mapping for the container |
|
|
||||||
| dpu | docker pull | Pull an image or a repository from a registry |
|
|
||||||
| dr | docker container run | Create a new container and start it using the specified command |
|
|
||||||
| drit | docker container run -it | Create a new container and start it in an interactive shell |
|
|
||||||
| drm | docker container rm | Remove the specified container(s) |
|
|
||||||
| drm! | docker container rm -f | Force the removal of a running container (uses SIGKILL) |
|
|
||||||
| dst | docker container start | Start one or more stopped containers |
|
|
||||||
| drs | docker container restart | Restart one or more containers |
|
|
||||||
| dstp | docker container stop | Stop one or more running containers |
|
|
||||||
| dtop | docker top | Display the running processes of a container |
|
|
||||||
| dvi | docker volume inspect | Display detailed information about one or more volumes |
|
|
||||||
| dvls | docker volume ls | List all the volumes known to docker |
|
|
||||||
| dvprune | docker volume prune | Cleanup dangling volumes |
|
|
||||||
| dxc | docker container exec | Run a new command in a running container |
|
|
||||||
| dxcit | docker container exec -it | Run a new command in a running container in an interactive shell |
|
|
||||||
| dsta | docker ps -q \| xargs docker stop | Stop all running containers |
|
|
||||||
|
|
||||||
## install and use
|
|
||||||
|
|
||||||
- install
|
|
||||||
|
|
||||||
```nushell
|
|
||||||
use {project_path}/aliases/docker/docker.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
- use
|
|
||||||
|
|
||||||
```nushell
|
|
||||||
docker-aliases + tab
|
|
||||||
```
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
export alias dbl = docker build
|
|
||||||
export alias dcin = docker container inspect
|
|
||||||
export alias dcls = docker container ls
|
|
||||||
export alias dclsa = docker container ls -a
|
|
||||||
export alias dib = docker image build
|
|
||||||
export alias dii = docker image inspect
|
|
||||||
export alias dils = docker image ls
|
|
||||||
export alias dipu = docker image push
|
|
||||||
export alias dirm = docker image rm
|
|
||||||
export alias dit = docker image tag
|
|
||||||
export alias dlo = docker container logs
|
|
||||||
export alias dnc = docker network create
|
|
||||||
export alias dncn = docker network connect
|
|
||||||
export alias dndcn = docker network disconnect
|
|
||||||
export alias dni = docker network inspect
|
|
||||||
export alias dnls = docker network ls
|
|
||||||
export alias dnrm = docker network rm
|
|
||||||
export alias dpo = docker container port
|
|
||||||
export alias dpu = docker pull
|
|
||||||
export alias dr = docker container run
|
|
||||||
export alias drit = docker container run -it
|
|
||||||
export alias drm = docker container rm
|
|
||||||
export alias drm! = docker container rm -f
|
|
||||||
export alias dst = docker container start
|
|
||||||
export alias drs = docker container restart
|
|
||||||
export alias dstp = docker container stop
|
|
||||||
export alias dtop = docker top
|
|
||||||
export alias dvi = docker volume inspect
|
|
||||||
export alias dvls = docker volume ls
|
|
||||||
export alias dvprune = docker volume prune
|
|
||||||
export alias dxc = docker container exec
|
|
||||||
export alias dxcit = docker container exec -it
|
|
||||||
|
|
||||||
# Alias for `docker ps -q | xargs docker stop`
|
|
||||||
export def dsta [] {
|
|
||||||
docker ps -q | xargs docker stop
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
export alias x = exa --icons
|
|
||||||
export alias xa = exa --icons --all
|
|
||||||
export alias xl = exa --long
|
|
||||||
export alias xla = exa --long --all
|
|
||||||
export alias xt = exa --icons --tree
|
|
||||||
export alias xta = exa --icons --tree --all
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
export alias x = eza --icons
|
|
||||||
export alias xa = eza --icons --all
|
|
||||||
export alias xl = eza --long
|
|
||||||
export alias xla = eza --long --all
|
|
||||||
export alias xt = eza --icons --tree
|
|
||||||
export alias xta = eza --icons --tree --all
|
|
||||||
@@ -1,214 +0,0 @@
|
|||||||
export def git_current_branch [] {
|
|
||||||
(gstat).branch
|
|
||||||
}
|
|
||||||
|
|
||||||
export def git_main_branch [] {
|
|
||||||
git remote show origin
|
|
||||||
| lines
|
|
||||||
| str trim
|
|
||||||
| find --regex 'HEAD .*?[:: ].+'
|
|
||||||
| first
|
|
||||||
| str replace --regex 'HEAD .*?[:: ]\s*(.+)' '$1'
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Aliases
|
|
||||||
# (sorted alphabetically)
|
|
||||||
#
|
|
||||||
|
|
||||||
export alias ga = git add
|
|
||||||
export alias gaa = git add --all
|
|
||||||
export alias gapa = git add --patch
|
|
||||||
export alias gau = git add --update
|
|
||||||
export alias gav = git add --verbose
|
|
||||||
export alias gap = git apply
|
|
||||||
export alias gapt = git apply --3way
|
|
||||||
|
|
||||||
export alias gb = git branch
|
|
||||||
export alias gba = git branch --all
|
|
||||||
export alias gbd = git branch --delete
|
|
||||||
export alias gbD = git branch --delete --force
|
|
||||||
export alias gbl = git blame -b -w
|
|
||||||
export alias gbm = git branch --move
|
|
||||||
export alias gbmc = git branch --move (git_current_branch)
|
|
||||||
export alias gbnm = git branch --no-merged
|
|
||||||
export alias gbr = git branch --remote
|
|
||||||
export alias gbs = git bisect
|
|
||||||
export alias gbsb = git bisect bad
|
|
||||||
export alias gbsg = git bisect good
|
|
||||||
export alias gbsn = git bisect new
|
|
||||||
export alias gbso = git bisect old
|
|
||||||
export alias gbsr = git bisect reset
|
|
||||||
export alias gbss = git bisect start
|
|
||||||
|
|
||||||
export alias gc = git commit --verbose
|
|
||||||
export alias gc! = git commit --verbose --amend
|
|
||||||
export alias gcn = git commit --verbose --no-edit
|
|
||||||
export alias gcn! = git commit --verbose --no-edit --amend
|
|
||||||
export alias gca = git commit --verbose --all
|
|
||||||
export alias gca! = git commit --verbose --all --amend
|
|
||||||
export alias gcan! = git commit --verbose --all --no-edit --amend
|
|
||||||
export alias gcans! = git commit --verbose --all --signoff --no-edit --amend
|
|
||||||
export alias gcam = git commit --all --message
|
|
||||||
export alias gcsm = git commit --signoff --message
|
|
||||||
export alias gcas = git commit --all --signoff
|
|
||||||
export alias gcasm = git commit --all --signoff --message
|
|
||||||
export alias gcb = git checkout -b
|
|
||||||
export alias gcd = git checkout develop
|
|
||||||
export alias gcf = git config --list
|
|
||||||
|
|
||||||
export alias gcl = git clone --recurse-submodules
|
|
||||||
export alias gclean = git clean --interactive -d
|
|
||||||
export def gpristine [] {
|
|
||||||
git reset --hard
|
|
||||||
git clean -d --force -x
|
|
||||||
}
|
|
||||||
export alias gcm = git checkout (git_main_branch)
|
|
||||||
export alias gcmsg = git commit --message
|
|
||||||
export alias gco = git checkout
|
|
||||||
export alias gcor = git checkout --recurse-submodules
|
|
||||||
export alias gcount = git shortlog --summary --numbered
|
|
||||||
export alias gcp = git cherry-pick
|
|
||||||
export alias gcpa = git cherry-pick --abort
|
|
||||||
export alias gcpc = git cherry-pick --continue
|
|
||||||
export alias gcs = git commit --gpg-sign
|
|
||||||
export alias gcss = git commit --gpg-sign --signoff
|
|
||||||
export alias gcssm = git commit --gpg-sign --signoff --message
|
|
||||||
|
|
||||||
export alias gd = git diff
|
|
||||||
export alias gdca = git diff --cached
|
|
||||||
export alias gdcw = git diff --cached --word-diff
|
|
||||||
export alias gdct = git describe --tags (git rev-list --tags --max-count=1)
|
|
||||||
export alias gds = git diff --staged
|
|
||||||
export alias gdt = git diff-tree --no-commit-id --name-only -r
|
|
||||||
export alias gdup = git diff @{upstream}
|
|
||||||
export alias gdw = git diff --word-diff
|
|
||||||
|
|
||||||
export alias gf = git fetch
|
|
||||||
export alias gfa = git fetch --all --prune
|
|
||||||
export alias gfo = git fetch origin
|
|
||||||
|
|
||||||
export alias gg = git gui citool
|
|
||||||
export alias gga = git gui citool --amend
|
|
||||||
|
|
||||||
export alias ghh = git help
|
|
||||||
|
|
||||||
export alias gignore = git update-index --assume-unchanged
|
|
||||||
|
|
||||||
export alias gl = git log
|
|
||||||
export alias glg = git log --stat
|
|
||||||
export alias glgp = git log --stat --patch
|
|
||||||
export alias glgg = git log --graph
|
|
||||||
export alias glgga = git log --graph --decorate --all
|
|
||||||
export alias glgm = git log --graph --max-count=10
|
|
||||||
export alias glo = git log --oneline --decorate
|
|
||||||
export alias glod = git log --graph $'--pretty=%Cred%h%Creset -%C(char lp)auto(char rp)%d%Creset %s %Cgreen(char lp)%ad(char rp) %C(char lp)bold blue(char rp)<%an>%Creset'
|
|
||||||
export alias glods = git log --graph $'--pretty=%Cred%h%Creset -%C(char lp)auto(char rp)%d%Creset %s %Cgreen(char lp)%ad(char rp) %C(char lp)bold blue(char rp)<%an>%Creset' --date=short
|
|
||||||
export alias glog = git log --oneline --decorate --graph
|
|
||||||
export alias gloga = git log --oneline --decorate --graph --all
|
|
||||||
export alias glol = git log --graph $'--pretty=%Cred%h%Creset -%C(char lp)auto(char rp)%d%Creset %s %Cgreen(char lp)%ar(char rp) %C(char lp)bold blue(char rp)<%an>%Creset'
|
|
||||||
export alias glola = git log --graph $'--pretty=%Cred%h%Creset -%C(char lp)auto(char rp)%d%Creset %s %Cgreen(char lp)%ar(char rp) %C(char lp)bold blue(char rp)<%an>%Creset' --all
|
|
||||||
export alias glols = git log --graph $'--pretty=%Cred%h%Creset -%C(char lp)auto(char rp)%d%Creset %s %Cgreen(char lp)%ar(char rp) %C(char lp)bold blue(char rp)<%an>%Creset' --stat
|
|
||||||
|
|
||||||
export alias gm = git merge
|
|
||||||
export alias gmtl = git mergetool --no-prompt
|
|
||||||
export alias gmtlvim = git mergetool --no-prompt --tool=vimdiff
|
|
||||||
export alias gma = git merge --abort
|
|
||||||
export def gmom [] {
|
|
||||||
let main = (git_main_branch)
|
|
||||||
git merge $"origin/($main)"
|
|
||||||
}
|
|
||||||
|
|
||||||
export alias gp = git push
|
|
||||||
export alias gpd = git push --dry-run
|
|
||||||
export alias gpf = git push --force-with-lease
|
|
||||||
export alias gpf! = git push --force
|
|
||||||
export alias gpl = git pull
|
|
||||||
export def gpoat [] {
|
|
||||||
git push origin --all; git push origin --tags
|
|
||||||
}
|
|
||||||
export alias gpod = git push origin --delete
|
|
||||||
export alias gpodc = git push origin --delete (git_current_branch)
|
|
||||||
export alias gpr = git pull --rebase
|
|
||||||
export alias gpu = git push upstream
|
|
||||||
export alias gpv = git push --verbose
|
|
||||||
|
|
||||||
export alias gr = git remote
|
|
||||||
export alias gpra = git pull --rebase --autostash
|
|
||||||
export alias gprav = git pull --rebase --autostash --verbose
|
|
||||||
export alias gprv = git pull --rebase --verbose
|
|
||||||
export alias gpsup = git push --set-upstream origin (git_current_branch)
|
|
||||||
export alias gra = git remote add
|
|
||||||
export alias grb = git rebase
|
|
||||||
export alias grba = git rebase --abort
|
|
||||||
export alias grbc = git rebase --continue
|
|
||||||
export alias grbd = git rebase develop
|
|
||||||
export alias grbi = git rebase --interactive
|
|
||||||
export alias grbm = git rebase (git_main_branch)
|
|
||||||
export alias grbo = git rebase --onto
|
|
||||||
export alias grbs = git rebase --skip
|
|
||||||
export alias grev = git revert
|
|
||||||
export alias grh = git reset
|
|
||||||
export alias grhh = git reset --hard
|
|
||||||
export alias groh = git reset $"origin/(git_current_branch)" --hard
|
|
||||||
export alias grm = git rm
|
|
||||||
export alias grmc = git rm --cached
|
|
||||||
export alias grmv = git remote rename
|
|
||||||
export alias grrm = git remote remove
|
|
||||||
export alias grs = git restore
|
|
||||||
export alias grset = git remote set-url
|
|
||||||
export alias grss = git restore --source
|
|
||||||
export alias grst = git restore --staged
|
|
||||||
export alias grt = cd (git rev-parse --show-toplevel or echo .)
|
|
||||||
export alias gru = git reset --
|
|
||||||
export alias grup = git remote update
|
|
||||||
export alias grv = git remote --verbose
|
|
||||||
|
|
||||||
export alias gsb = git status --short --branch
|
|
||||||
export alias gsd = git svn dcommit
|
|
||||||
export alias gsh = git show
|
|
||||||
export alias gshs = git show -s
|
|
||||||
export alias gsi = git submodule init
|
|
||||||
export alias gsps = git show --pretty=short --show-signature
|
|
||||||
export alias gsr = git svn rebase
|
|
||||||
export alias gss = git status --short
|
|
||||||
export alias gst = git status
|
|
||||||
|
|
||||||
export alias gsta = git stash push
|
|
||||||
export alias gstaa = git stash apply
|
|
||||||
export alias gstc = git stash clear
|
|
||||||
export alias gstd = git stash drop
|
|
||||||
export alias gstl = git stash list
|
|
||||||
export alias gstp = git stash pop
|
|
||||||
export alias gsts = git stash show --text
|
|
||||||
export alias gstu = gsta --include-untracked
|
|
||||||
export alias gstall = git stash --all
|
|
||||||
export alias gsu = git submodule update
|
|
||||||
export alias gsw = git switch
|
|
||||||
export alias gswc = git switch --create
|
|
||||||
|
|
||||||
export alias gts = git tag --sign
|
|
||||||
export def gtv [] {
|
|
||||||
git tag | lines | sort
|
|
||||||
}
|
|
||||||
export alias glum = git pull upstream (git_main_branch)
|
|
||||||
|
|
||||||
export alias gunignore = git update-index --no-assume-unchanged
|
|
||||||
export alias gup = git pull --rebase
|
|
||||||
export alias gupv = git pull --rebase --verbose
|
|
||||||
export alias gupa = git pull --rebase --autostash
|
|
||||||
export alias gupav = git pull --rebase --autostash --verbose
|
|
||||||
|
|
||||||
export alias gwch = git whatchanged -p --abbrev-commit --pretty=medium
|
|
||||||
|
|
||||||
export alias gwt = git worktree
|
|
||||||
export alias gwta = git worktree add
|
|
||||||
export alias gwtls = git worktree list
|
|
||||||
export alias gwtmv = git worktree move
|
|
||||||
export alias gwtrm = git worktree remove
|
|
||||||
|
|
||||||
export alias gam = git am
|
|
||||||
export alias gamc = git am --continue
|
|
||||||
export alias gams = git am --skip
|
|
||||||
export alias gama = git am --abort
|
|
||||||
export alias gamscp = git am --show-current-patch
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,3 +0,0 @@
|
|||||||
# transform the aligned text output of aws s3 ls into something useful
|
|
||||||
# presumes you have the aws CLI
|
|
||||||
aws s3 ls s3://your-bucket-and-path | lines | each { echo $it | str find-replace ' ' ' ' | str find-replace ' ' ' ' } | split column ' '
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Benchmark Scripts
|
|
||||||
|
|
||||||
### Definition
|
|
||||||
|
|
||||||
These scripts are used to benchmark certain aspects of nushell.
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env nu
|
|
||||||
# This is a much less efficient, recursive version of fibonacci that can be used to test our
|
|
||||||
# command call performance.
|
|
||||||
|
|
||||||
use std bench
|
|
||||||
|
|
||||||
def fib [n: int] {
|
|
||||||
match $n {
|
|
||||||
0 => 0,
|
|
||||||
1 => 1,
|
|
||||||
$n => { (fib ($n - 1)) + (fib ($n - 2)) },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def main [] {
|
|
||||||
print (bench { 0..20 | each { |n| fib $n } } | reject times)
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env nu
|
|
||||||
# This benchmark covers the evaluation performance of some very simple, iterative Nushell code that
|
|
||||||
# doesn't require a bunch of calls into nested closures and doesn't rely on commands to do any
|
|
||||||
# heavy lifting.
|
|
||||||
#
|
|
||||||
# Originally added by @devyn to show what absolute best case performance for IR evaluation can look
|
|
||||||
# like. Not super representative of normal Nushell code.
|
|
||||||
|
|
||||||
use std bench
|
|
||||||
|
|
||||||
def fib [n: int] {
|
|
||||||
mut a = 0
|
|
||||||
mut b = 1
|
|
||||||
for _ in 2..=$n {
|
|
||||||
let c = $a + $b
|
|
||||||
$a = $b
|
|
||||||
$b = $c
|
|
||||||
}
|
|
||||||
$b
|
|
||||||
}
|
|
||||||
|
|
||||||
def main [] {
|
|
||||||
print (bench -n 1000 { 0..50 | each { |n| fib $n } } | reject times)
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# this script will print a blue gradient on the screen
|
|
||||||
# it's intended to simulate nushell v0.44 with autoview
|
|
||||||
|
|
||||||
let height = (term size).rows - 3 # calculate height
|
|
||||||
let width = (term size).columns - 5 # calculate width
|
|
||||||
let stamp_start = $width * 1.25 # calculate where to start Nu stamp
|
|
||||||
let stamp_end = $width * 1.3 # calculate where to stop Nu stamp
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | par-each {|| # create these in parallel
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
if $fgcolor > $stamp_start and $fgcolor < $stamp_end {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
print -n $"($row_data)" | table
|
|
||||||
null
|
|
||||||
} | compact
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# this script will print a blue gradient on the screen
|
|
||||||
|
|
||||||
# We can get the terminal width and height now with term size
|
|
||||||
# but we like to use the script as a benchmark, so let's keep
|
|
||||||
# it a constant size for now
|
|
||||||
let height = 40 # really need to get the terminal height here
|
|
||||||
let width = 160 # really need to get the terminal width here
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m(char sp)(ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
print -n $"($row_data)(char newline)"
|
|
||||||
} | str join
|
|
||||||
|
|
||||||
def iter_inc [incr mult iter] {
|
|
||||||
$incr + $mult * $iter
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# ╭────────────────────┬──────────────────────────────────────────────────────╮
|
|
||||||
# │ version │ 0.1.0 │
|
|
||||||
# │ branch │ main │
|
|
||||||
# │ short_commit │ ec94ca46 │
|
|
||||||
# │ commit_hash │ ec94ca46bb64f3aa95f1366d76d60da2ddc53782 │
|
|
||||||
# │ commit_date │ 2022-01-24 19:45:20 +00:00 │
|
|
||||||
# │ build_os │ windows-x86_64 │
|
|
||||||
# │ rust_version │ rustc 1.58.1 (db9d1b20b 2022-01-20) │
|
|
||||||
# │ rust_channel │ stable-x86_64-pc-windows-msvc │
|
|
||||||
# │ cargo_version │ cargo 1.58.0 (f01b232bc 2022-01-19) │
|
|
||||||
# │ pkg_version │ 0.1.0 │
|
|
||||||
# │ build_time │ 2022-01-24 15:04:00 -06:00 │
|
|
||||||
# │ build_rust_channel │ debug │
|
|
||||||
# │ features │ dataframe, default, which, zip │
|
|
||||||
# │ installed_plugins │ gstat, inc, nu-example-1, nu-example-2, nu-example-3 │
|
|
||||||
# ╰────────────────────┴──────────────────────────────────────────────────────╯
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
# height = 40
|
|
||||||
# width = 160
|
|
||||||
# stamp = "py"
|
|
||||||
|
|
||||||
# for line in range(0, height):
|
|
||||||
# row_data = ""
|
|
||||||
|
|
||||||
# for col in range(0, width):
|
|
||||||
# fgcolor = 2 + 2 * col
|
|
||||||
# if fgcolor > 200 and fgcolor < 210:
|
|
||||||
# row_data = row_data + color(stamp, bg='rgb(0, 0, %d)' % fgcolor)
|
|
||||||
# else:
|
|
||||||
# fg = fgcolor % 256
|
|
||||||
# row_data = row_data + color(' ', bg='rgb(0, 0, %d)' % fg)
|
|
||||||
|
|
||||||
# print(row_data)
|
|
||||||
|
|
||||||
const height = 40
|
|
||||||
const width = 160
|
|
||||||
const stamp = "Nu"
|
|
||||||
|
|
||||||
for line in 0..$height {
|
|
||||||
mut row_data = ""
|
|
||||||
|
|
||||||
for col in 0..$width {
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$row_data += $"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
let fg = $fgcolor mod 256
|
|
||||||
$row_data += $"(ansi -e '48;2;0;0;')($fg)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print $row_data
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# this script will print a blue gradient on the screen
|
|
||||||
|
|
||||||
# First:
|
|
||||||
# pip install ansicolors
|
|
||||||
|
|
||||||
from colors import *
|
|
||||||
|
|
||||||
height = 40
|
|
||||||
width = 160
|
|
||||||
stamp = "py"
|
|
||||||
|
|
||||||
for line in range(0, height):
|
|
||||||
row_data = ""
|
|
||||||
|
|
||||||
for col in range(0, width):
|
|
||||||
fgcolor = 2 + 2 * col
|
|
||||||
if fgcolor > 200 and fgcolor < 210:
|
|
||||||
row_data = row_data + color(stamp, bg='rgb(0, 0, %d)' % fgcolor)
|
|
||||||
else:
|
|
||||||
fg = fgcolor % 256
|
|
||||||
row_data = row_data + color(' ', bg='rgb(0, 0, %d)' % fg)
|
|
||||||
|
|
||||||
print(row_data)
|
|
||||||
@@ -1,158 +0,0 @@
|
|||||||
# Kubouch wrote this on/around 01/26/2022
|
|
||||||
|
|
||||||
def iter_inc [incr mult iter] {
|
|
||||||
$incr + $mult * $iter
|
|
||||||
}
|
|
||||||
|
|
||||||
let is_release = (input "Did you compile in a release mode? y/n ")
|
|
||||||
|
|
||||||
if ($is_release | str downcase | str trim) == "y" {
|
|
||||||
print $"running test 0 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 0. this has wrong output
|
|
||||||
let 0 = (seq 1 10 | each { timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m(char sp)(ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char newline)"
|
|
||||||
} | str join
|
|
||||||
}} | math avg)
|
|
||||||
|
|
||||||
|
|
||||||
print $"running test 1 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 1. Fixed newline to fix the output (char cr)
|
|
||||||
let 1 = (seq 1 10 | each { timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m(char sp)(ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
}} | math avg)
|
|
||||||
|
|
||||||
print $"running test 2 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 2. Replace (char sp) with just space
|
|
||||||
let 2 = (seq 1 10 | each { timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
}} | math avg)
|
|
||||||
|
|
||||||
print $"running test 3 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 3. Precompute (ansi -e '48;2;0;0;') and (ansi -e '0m') -- seems to be slower
|
|
||||||
let 3 = (seq 1 10 | each { timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
let ansi1 = (ansi -e '48;2;0;0;')
|
|
||||||
let ansi2 = (ansi -e '0m')
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"($ansi1)($fgcolor)m($stamp)($ansi2)"
|
|
||||||
} else {
|
|
||||||
$"($ansi1)($fgcolor)m(char sp)($ansi2)"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
}} | math avg)
|
|
||||||
|
|
||||||
print $"running test 4 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 4. Inline iter_inc call
|
|
||||||
let 4 = (seq 1 10 | each { timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m(char sp)(ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
}} | math avg)
|
|
||||||
|
|
||||||
print $"running test 5 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 5. Combine (char sp) substitution and iter_inc inlining
|
|
||||||
let 5 = (seq 1 10 | each { timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
}} | math avg)
|
|
||||||
|
|
||||||
print $"running test 6 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 6. The above with par-each outer loop (using par-each anywhere else breaks the output)
|
|
||||||
let 6 = (seq 1 10 | each { timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | par-each -t 100 { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
}} | math avg)
|
|
||||||
|
|
||||||
print 'collating tests'
|
|
||||||
{
|
|
||||||
wrong_output: $0
|
|
||||||
newline: $1
|
|
||||||
span: $2
|
|
||||||
precompute_ansi: $3
|
|
||||||
inline_call: $4
|
|
||||||
space_and_inline_call: $5
|
|
||||||
par_each: $6
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
print "Compile in a release mode!"
|
|
||||||
}
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
# Kubouch wrote this on/around 01/26/2022
|
|
||||||
|
|
||||||
def iter_inc [incr mult iter] {
|
|
||||||
$incr + $mult * $iter
|
|
||||||
}
|
|
||||||
|
|
||||||
#let is_release = input "Did you compile in a release mode? y/n "
|
|
||||||
let is_release = "y"
|
|
||||||
|
|
||||||
if ($is_release | str downcase | str trim) == "y" {
|
|
||||||
|
|
||||||
print $"running test 0 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 0. this has wrong output
|
|
||||||
let 0 = (seq 10 | timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m(char sp)(ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char newline)"
|
|
||||||
} | str join
|
|
||||||
} | math avg)
|
|
||||||
|
|
||||||
|
|
||||||
print $"running test 1 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 1. Fixed newline to fix the output (char cr)
|
|
||||||
let 1 = (seq 10 | timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m(char sp)(ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
} | math avg)
|
|
||||||
|
|
||||||
print $"running test 2 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 2. Replace (char sp) with just space
|
|
||||||
let 2 = (seq 10 | timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
} | math avg)
|
|
||||||
|
|
||||||
print $"running test 3 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 3. Precompute (ansi -e '48;2;0;0;') and (ansi -e '0m') -- seems to be slower
|
|
||||||
let 3 = (seq 10 | timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
let ansi1 = (ansi -e '48;2;0;0;')
|
|
||||||
let ansi2 = (ansi -e '0m')
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = (iter_inc 2 2 $col)
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"($ansi1)($fgcolor)m($stamp)($ansi2)"
|
|
||||||
} else {
|
|
||||||
$"($ansi1)($fgcolor)m(char sp)($ansi2)"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
} | math avg)
|
|
||||||
|
|
||||||
print $"running test 4 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 4. Inline iter_inc call
|
|
||||||
let 4 = (seq 10 | timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m(char sp)(ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
} | math avg)
|
|
||||||
|
|
||||||
print $"running test 5 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 5. Combine (char sp) substitution and iter_inc inlining
|
|
||||||
let 5 = (seq 10 | timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | each { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
} | math avg)
|
|
||||||
|
|
||||||
print $"running test 6 at (date now | format date '%Y-%m-%d %H:%M:%S.%3f')"
|
|
||||||
# 6. The above with par-each outer loop (using par-each anywhere else breaks the output)
|
|
||||||
let 6 = (seq 10 | timeit {
|
|
||||||
let height = 40
|
|
||||||
let width = 160
|
|
||||||
let stamp = 'Nu'
|
|
||||||
seq 0 $height | par-each -t 100 { |row|
|
|
||||||
let row_data = (seq 0 $width | each { |col|
|
|
||||||
let fgcolor = 2 + 2 * $col
|
|
||||||
if $fgcolor > 200 and $fgcolor < 210 {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m($stamp)(ansi -e '0m')"
|
|
||||||
} else {
|
|
||||||
$"(ansi -e '48;2;0;0;')($fgcolor)m (ansi -e '0m')"
|
|
||||||
}
|
|
||||||
} | str join)
|
|
||||||
$"($row_data)(char cr)"
|
|
||||||
} | str join
|
|
||||||
} | math avg)
|
|
||||||
|
|
||||||
print 'collating tests'
|
|
||||||
[ $0 $1 $2 $3 $4 $5 $6 ]
|
|
||||||
|
|
||||||
} else {
|
|
||||||
print "Compile in a release mode!"
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
use std bench
|
|
||||||
|
|
||||||
def "random bytes" [n: int]: nothing -> binary {
|
|
||||||
seq 1 ($n / 8 + 1)
|
|
||||||
| each { random int }
|
|
||||||
| into binary
|
|
||||||
| enumerate
|
|
||||||
| reduce -f 0x[] {|it, acc|
|
|
||||||
$acc | bytes add $it.item
|
|
||||||
}
|
|
||||||
| first $n
|
|
||||||
}
|
|
||||||
|
|
||||||
let ns = [10, 100, 1_000, 10_000, 100_000]
|
|
||||||
|
|
||||||
let report = $ns | each {|n|
|
|
||||||
bench { random bytes $n } --rounds 10 --pretty --verbose
|
|
||||||
} | wrap time | merge ($ns | wrap n)
|
|
||||||
|
|
||||||
$report
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
# This is just for benchmarking
|
|
||||||
# it uses the no check benchmark so it doesn't prompt you
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
print (source gradient_benchmark_no_check.nu)
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# The infamous turtle benchmark
|
|
||||||
def turtle [column: string] {
|
|
||||||
wrap $column | table
|
|
||||||
}
|
|
||||||
|
|
||||||
print $"Turtle 1 = ('turtle' | turtle '1' | str length)"
|
|
||||||
print $"Turtle 2 = ('turtle' | turtle '1' | turtle '2' | str length)"
|
|
||||||
print $"Turtle 3 = ('turtle' | turtle '1' | turtle '2' | turtle '3' | str length)"
|
|
||||||
print $"Turtle 4 = ('turtle' | turtle '1' | turtle '2' | turtle '3' | turtle '4' | str length)"
|
|
||||||
print $"Turtle 5 = ('turtle' | turtle '1' | turtle '2' | turtle '3' | turtle '4' | turtle '5' | str length)"
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Custom completions
|
|
||||||
|
|
||||||
This current directory provides custom completions. They can be used by importing their exported commands via:
|
|
||||||
|
|
||||||
```nushell
|
|
||||||
use path/to/<command>/<command>-completions.nu *
|
|
||||||
# or
|
|
||||||
source path/to/<command>/<command>-completions.nu
|
|
||||||
# without the `*` at the end
|
|
||||||
```
|
|
||||||
|
|
||||||
With `path/to/<command>` being either the relative path of the file to your current working directory or its absolute path.
|
|
||||||
|
|
||||||
Bear in mind that if you import the `use <path> *`, it is important that you don't name a function with the same name of the file
|
|
||||||
|
|
||||||
```nu
|
|
||||||
# file: rustup.nu
|
|
||||||
|
|
||||||
export extern rustup [
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
```
|
|
||||||
`use ./rustup.nu *` won't work here
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
# copied from auto-generated completions
|
|
||||||
|
|
||||||
export extern "ack" [
|
|
||||||
--ignore-case(-i) # Ignore case
|
|
||||||
--smart-case # Ignore case when pattern contains no uppercase
|
|
||||||
--no-smart-case # Dont ignore case
|
|
||||||
--invert-match(-v) # Invert match
|
|
||||||
--word-regexp(-w) # Match only whole words
|
|
||||||
--literal(-Q) # Quote all metacharacters
|
|
||||||
--lines # Only print line(s) NUM of each file
|
|
||||||
--files-with-matches(-l) # Only print filenames containing matches
|
|
||||||
--files-without-matches(-L) # Only print filenames with no matches
|
|
||||||
--output # Output the evaluation of Perl expression for each line
|
|
||||||
--passthru # Print all lines
|
|
||||||
--match # Specify pattern explicitly
|
|
||||||
--max-count(-m) # Stop searching in each file after NUM matches
|
|
||||||
--with-filename(-H) # Print the filename for each match
|
|
||||||
--no-filename(-h) # Suppress the prefixing filename on output
|
|
||||||
--count(-c) # Show number of lines matching per file
|
|
||||||
--column # Show column number of first match
|
|
||||||
--no-column # Dont show column number of first match
|
|
||||||
--print0 # Print null byte as separator between filenames
|
|
||||||
--pager # Pipes all ack output through command
|
|
||||||
--no-pager # Do not send output through a pager
|
|
||||||
--heading # Prints a filename heading above files results
|
|
||||||
--no-heading # Dont print a filename heading above files results
|
|
||||||
--break # Print a break between results
|
|
||||||
--no-break # Dont print a break between results
|
|
||||||
--group # Filename heading and line break between results
|
|
||||||
--no-group # No filename heading and no line breaks between results
|
|
||||||
--color # Highlight the matching text
|
|
||||||
--no-colour # Dont highlight the matching text
|
|
||||||
--color-filename # Set the color for filenames
|
|
||||||
--color-match # Set the color for matches
|
|
||||||
--color-lineno # Set the color for line numbers
|
|
||||||
--flush # Flush output immediately
|
|
||||||
--sort-files # Sort the found files lexically
|
|
||||||
--show-types # Show which types each file has
|
|
||||||
--files-from # Read the list of files to search from file
|
|
||||||
--ignore-directory # Ignore directory
|
|
||||||
--no-ignore-directory # Dont ignore directory
|
|
||||||
--ignore-file # Add filter for ignoring files
|
|
||||||
--recurse(-R) # Recurse into subdirectories
|
|
||||||
--no-recurse(-n) # No descending into subdirectories
|
|
||||||
--follow # Follow symlinks
|
|
||||||
--no-follow # Dont follow symlinks
|
|
||||||
--known-types(-k) # Include only recognized files
|
|
||||||
--type # Include only X files
|
|
||||||
--type-set # Replaces definition of type
|
|
||||||
--type-add # Specify definition of type
|
|
||||||
--type-del # Removes all filters associated with type
|
|
||||||
--no-env # Ignores environment variables and ackrc files
|
|
||||||
--ackrc # Specifies location of ackrc file
|
|
||||||
--ignore-ack-defaults # Ignore default definitions ack includes
|
|
||||||
--create-ackrc # Outputs default ackrc
|
|
||||||
--help(-?) # Shows help
|
|
||||||
--help-types # Shows all known types
|
|
||||||
--dump # Dump information on which options are loaded
|
|
||||||
--filter # Forces ack to treat input as a pipe
|
|
||||||
--no-filter # Forces ack to treat input as tty
|
|
||||||
--man # Shows man page
|
|
||||||
--version # Displays version and copyright
|
|
||||||
--thpppt # Bill the Cat
|
|
||||||
--bar # The warning admiral
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,304 +0,0 @@
|
|||||||
def "nu-complete adb one-device-args" [] {
|
|
||||||
[SERIAL USB]
|
|
||||||
}
|
|
||||||
|
|
||||||
def "nu-complete adb compression-algorithm" [] {
|
|
||||||
[any none brotli lz4 zstd]
|
|
||||||
}
|
|
||||||
|
|
||||||
def "nu-complete adb sync-partations" [] {
|
|
||||||
[all data odm oem product system system_ext vendor]
|
|
||||||
}
|
|
||||||
|
|
||||||
def "nu-complete adb wait-for-state" [] {
|
|
||||||
[-device -recovery -rescue -sideload -bootloader -disconnect]
|
|
||||||
}
|
|
||||||
|
|
||||||
def "nu-complete adb wait-for-transport" [] {
|
|
||||||
[-usb -local -any]
|
|
||||||
}
|
|
||||||
|
|
||||||
def "nu-complete adb reboot-type" [] {
|
|
||||||
[
|
|
||||||
bootloader
|
|
||||||
recovery
|
|
||||||
edl
|
|
||||||
sideload # Reboots into recovery and automatically starts sideload mode.
|
|
||||||
sideload-auto-reboot
|
|
||||||
" "
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
export extern "adb" [
|
|
||||||
-a # listen on all network interfaces, not just localhost
|
|
||||||
-d # use USB device (error if multiple devices connected)
|
|
||||||
-e # use TCP/IP device (error if multiple TCP/IP devices available)
|
|
||||||
-s: string # use device with given serial (overrides $ANDROID_SERIAL)
|
|
||||||
-t: string # use device with given transport id
|
|
||||||
-H: string # name of adb server host [default=localhost]
|
|
||||||
-P: int # port of adb server [default=5037]
|
|
||||||
-L: string # listen on given socket for adb server [default=tcp:localhost:5037]
|
|
||||||
|
|
||||||
--exit-on-write-error # exit if stdout is closed
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show this help message.
|
|
||||||
export extern "adb help" []
|
|
||||||
|
|
||||||
# Show version number.
|
|
||||||
export extern "adb version" []
|
|
||||||
|
|
||||||
# Connect to a device via TCP/IP [default PORT=5555].
|
|
||||||
export extern "adb connect" [
|
|
||||||
host_port: string # Connect to a device via TCP/IP [default PORT=5555].
|
|
||||||
]
|
|
||||||
|
|
||||||
# Disconnect from given TCP/IP device [default PORT=5555], or all.
|
|
||||||
export extern "adb disconnect" [
|
|
||||||
host_port?: string # Disconnect device via TCP/IP [default PORT=5555] (disconnec all if no ip given).
|
|
||||||
]
|
|
||||||
|
|
||||||
# Pair with a device for secure TCP/IP communication.
|
|
||||||
export extern "adb pair" [
|
|
||||||
host_port: string # Connect to a device via TCP/IP [default PORT=5555].
|
|
||||||
PAIRING_CODE: string
|
|
||||||
]
|
|
||||||
|
|
||||||
export extern "adb forward" [
|
|
||||||
--list # List all forward socket connections.
|
|
||||||
--no-rebind
|
|
||||||
LOCAL_REMOTE: string # Forward socket connection using one of the followings. tcp:PORT (local may be “tcp:0” to pick any open port. localreserved:UNIX_DOMAIN_SOCKET_NAME. localfilesystem:UNIX_DOMAIN_SOCKET_NAME. jdwp:PROCESS PID (remote only). vsock:CID:PORT (remote only). acceptfd:FD (listen only). dev:DEVICE_NAME. dev-raw:DEVICE_NAME. (open device in raw mode)**.
|
|
||||||
--remove: string # Remove specific forward socket connection.
|
|
||||||
--remove-all # Remove all forward socket connections.
|
|
||||||
]
|
|
||||||
|
|
||||||
export extern "adb reverse" [
|
|
||||||
--list # List all forward socket connections.
|
|
||||||
--no-rebind
|
|
||||||
LOCAL_REMOTE: string # Forward socket connection using one of the followings. tcp:PORT (local may be “tcp:0” to pick any open port. localreserved:UNIX_DOMAIN_SOCKET_NAME. localfilesystem:UNIX_DOMAIN_SOCKET_NAME. jdwp:PROCESS PID (remote only). vsock:CID:PORT (remote only). acceptfd:FD (listen only). dev:DEVICE_NAME. dev-raw:DEVICE_NAME. (open device in raw mode)**.
|
|
||||||
--remove: string # Remove specific forward socket connection.
|
|
||||||
--remove-all # Remove all forward socket connections.
|
|
||||||
]
|
|
||||||
|
|
||||||
export extern "adb mdns" [
|
|
||||||
check # Check if mdns discovery is available.
|
|
||||||
services # List all discovered services.
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# List connected devices.
|
|
||||||
export extern "adb devices" [
|
|
||||||
-l # Use long output.
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Push a single package to the device and install it
|
|
||||||
export extern "adb install" [
|
|
||||||
Package: string
|
|
||||||
-r # Replace existing application.
|
|
||||||
-t # Allow test packages.
|
|
||||||
-d # Allow version code downgrade (debuggable packages only).
|
|
||||||
-p # Partial application install (install-multiple only).
|
|
||||||
-g # Grant all runtime permissions.
|
|
||||||
--abi:string # Override platform's default ABI.
|
|
||||||
--instant # Cause the app to be installed as an ephemeral install app.
|
|
||||||
--no-streaming # Always push APK to device and invoke Package Manager as separate steps.
|
|
||||||
--streaming # Force streaming APK directly into Package Manager.
|
|
||||||
--fastdeploy # Use fast deploy.
|
|
||||||
--no-fastdeploy # Prevent use of fast deploy.
|
|
||||||
--force-agent # Force update of deployment agent when using fast deploy.
|
|
||||||
--date-check-agent # Update deployment agent when local version is newer and using fast deploy.
|
|
||||||
--version-check-agent # Update deployment agent when local version has different version code and using fast deploy.
|
|
||||||
--local-agent # Locate agent files from local source build (instead of SDK location). See also adb shell pm help for more options.
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Push one or more packages to the device and install them atomically
|
|
||||||
export extern "adb install-multiple" [
|
|
||||||
Package: string
|
|
||||||
-r # Replace existing application.
|
|
||||||
-t # Allow test packages.
|
|
||||||
-d # Allow version code downgrade (debuggable packages only).
|
|
||||||
-p # Partial application install (install-multiple only).
|
|
||||||
-g # Grant all runtime permissions.
|
|
||||||
--abi:string # Override platform's default ABI.
|
|
||||||
--instant # Cause the app to be installed as an ephemeral install app.
|
|
||||||
--no-streaming # Always push APK to device and invoke Package Manager as separate steps.
|
|
||||||
--streaming # Force streaming APK directly into Package Manager.
|
|
||||||
--fastdeploy # Use fast deploy.
|
|
||||||
--no-fastdeploy # Prevent use of fast deploy.
|
|
||||||
--force-agent # Force update of deployment agent when using fast deploy.
|
|
||||||
--date-check-agent # Update deployment agent when local version is newer and using fast deploy.
|
|
||||||
--version-check-agent # Update deployment agent when local version has different version code and using fast deploy.
|
|
||||||
--local-agent # Locate agent files from local source build (instead of SDK location). See also adb shell pm help for more options.
|
|
||||||
]
|
|
||||||
|
|
||||||
export extern "adb install-multi-package" [
|
|
||||||
Package: string
|
|
||||||
-r # Replace existing application.
|
|
||||||
-t # Allow test packages.
|
|
||||||
-d # Allow version code downgrade (debuggable packages only).
|
|
||||||
-p # Partial application install (install-multiple only).
|
|
||||||
-g # Grant all runtime permissions.
|
|
||||||
--abi:string # Override platform's default ABI.
|
|
||||||
--instant # Cause the app to be installed as an ephemeral install app.
|
|
||||||
--no-streaming # Always push APK to device and invoke Package Manager as separate steps.
|
|
||||||
--streaming # Force streaming APK directly into Package Manager.
|
|
||||||
--fastdeploy # Use fast deploy.
|
|
||||||
--no-fastdeploy # Prevent use of fast deploy.
|
|
||||||
--force-agent # Force update of deployment agent when using fast deploy.
|
|
||||||
--date-check-agent # Update deployment agent when local version is newer and using fast deploy.
|
|
||||||
--version-check-agent # Update deployment agent when local version has different version code and using fast deploy.
|
|
||||||
--local-agent # Locate agent files from local source build (instead of SDK location). See also adb shell pm help for more options.
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Remove specified application from the device
|
|
||||||
export extern "adb uninstall" [
|
|
||||||
APPLICATION_ID: string # Remove this APPLICATION_ID from the device.
|
|
||||||
-k
|
|
||||||
]
|
|
||||||
|
|
||||||
# Run remote shell command (interactive shell if no command given)
|
|
||||||
export extern "adb shell" [
|
|
||||||
-e # Choose escape character, or “none”; default ‘~’.
|
|
||||||
-n # Don't read from stdin
|
|
||||||
-T # Disable pty allocation.
|
|
||||||
-t # Allocate a pty if on a tty (-tt force pty allocation).
|
|
||||||
-x # Disable remote exit codes and stdout/stderr separation.
|
|
||||||
COMMAND?:string # Run emulator console COMMAND
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Copy local files/directories to device.
|
|
||||||
export extern "adb push" [
|
|
||||||
--sync # Only push files that are newer on the host than the device.
|
|
||||||
-n # Dry run, push files to device without storing to the filesystem.
|
|
||||||
-z:string@"nu-complete adb compression-algorithm" # enable compression with a specified algorithm (any/none/brotli/lz4/zstd).
|
|
||||||
-Z # Disable compression.
|
|
||||||
|
|
||||||
]
|
|
||||||
|
|
||||||
# Copy files/dirs from device
|
|
||||||
export extern "adb pull" [
|
|
||||||
-a # preserve file timestamp and mode.
|
|
||||||
--sync # Only push files that are newer on the host than the device.
|
|
||||||
-n # Dry run. Push files to device without storing to the filesystem.
|
|
||||||
-z:string@"nu-complete adb compression-algorithm" # enable compression with a specified algorithm (any/none/brotli/lz4/zstd).
|
|
||||||
-Z # Disable compression.
|
|
||||||
...remote: string
|
|
||||||
local: string
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)
|
|
||||||
export extern "adb sync" [
|
|
||||||
parations: string@"nu-complete adb sync-partations"
|
|
||||||
-n # Dry run. Push files to device without storing to the filesystem.
|
|
||||||
-z:string@"nu-complete adb compression-algorithm" # enable compression with a specified algorithm (any/none/brotli/lz4/zstd).
|
|
||||||
-Z # Disable compression.
|
|
||||||
-l # List files that would be copied, but don't copy them.
|
|
||||||
]
|
|
||||||
|
|
||||||
# Ensure that there is a server running.
|
|
||||||
export extern "adb start-server" [ # only allowed with 'start-server' or 'server nodaemon',
|
|
||||||
--one-device: string@"nu-complete adb one-device-args" #server will only connect to one USB device, specified by a serial number or USB device address.
|
|
||||||
]
|
|
||||||
|
|
||||||
# Kill the server if it is running.
|
|
||||||
export extern "adb kill-server" []
|
|
||||||
|
|
||||||
# Close connection from host or device side to force reconnect.
|
|
||||||
export extern "adb reconnect" [
|
|
||||||
device?: string
|
|
||||||
]
|
|
||||||
|
|
||||||
# Close connection from device side to force reconnect.
|
|
||||||
export extern "adb reconnect device" []
|
|
||||||
|
|
||||||
# Reset offline/unauthorized devices to force reconnect.
|
|
||||||
export extern "adb reconnect offline" []
|
|
||||||
|
|
||||||
# Attach a detached USB device identified by its SERIAL number.
|
|
||||||
export extern "adb attach" [
|
|
||||||
SERIAL: string
|
|
||||||
]
|
|
||||||
|
|
||||||
# Detach from a USB device identified by its SERIAL to allow use by other processes.
|
|
||||||
export extern "adb detach" [
|
|
||||||
SERIAL: string
|
|
||||||
]
|
|
||||||
|
|
||||||
# list features supported by adb server.
|
|
||||||
export extern "adb host-features" []
|
|
||||||
|
|
||||||
# list features supported by both adb server and device.
|
|
||||||
export extern "adb features" []
|
|
||||||
|
|
||||||
# Write bugreport
|
|
||||||
export extern "adb bugreport" [
|
|
||||||
PATH: string # PATH [default=bugreport.zip]; if PATH is a directory, the bug report is saved in that directory. devices that don't support zipped bug reports output to stdout.
|
|
||||||
|
|
||||||
]
|
|
||||||
|
|
||||||
# List pids of processes hosting a JDWP transport.
|
|
||||||
export extern "adb jdwp" []
|
|
||||||
|
|
||||||
# Show device log (logcat --help for more).
|
|
||||||
export extern "adb logcat" []
|
|
||||||
|
|
||||||
# Disable dm-verity checking on userdebug builds.
|
|
||||||
export extern "adb disable-verity" []
|
|
||||||
|
|
||||||
# Re-enable dm-verity checking on userdebug builds.
|
|
||||||
export extern "adb enable-verity" []
|
|
||||||
|
|
||||||
# Generate adb public/private key; private key stored in FILE.
|
|
||||||
export extern "adb keygen" [
|
|
||||||
FILE: string
|
|
||||||
]
|
|
||||||
|
|
||||||
# Wait for device to be in a given state.
|
|
||||||
export extern "adb wait-for" [
|
|
||||||
STATE: string@"nu-complete adb wait-for-state"
|
|
||||||
TRANSPORT: string@"nu-complete adb wait-for-transport"
|
|
||||||
]
|
|
||||||
|
|
||||||
# Print offline | bootloader | device.
|
|
||||||
export extern "adb get-state" []
|
|
||||||
|
|
||||||
# Print SERIAL_NUMBER.
|
|
||||||
export extern "adb get-serialno" []
|
|
||||||
|
|
||||||
# Print DEVICE_PATH.
|
|
||||||
export extern "adb get-devpath" []
|
|
||||||
|
|
||||||
# Remount partitions read-write.
|
|
||||||
export extern "adb remount" [
|
|
||||||
-R # Automatically reboot the device.
|
|
||||||
]
|
|
||||||
|
|
||||||
# Reboot the device; defaults to booting system image but supports bootloader and recovery too.
|
|
||||||
export extern "adb reboot" [
|
|
||||||
type:string@"nu-complete adb reboot-type"
|
|
||||||
]
|
|
||||||
|
|
||||||
# Sideload the given full OTA package
|
|
||||||
export extern "adb sideload" [
|
|
||||||
OTAPACKAGE: string
|
|
||||||
]
|
|
||||||
|
|
||||||
# Restart adbd with root permissions.
|
|
||||||
export extern "adb root" []
|
|
||||||
|
|
||||||
# Restart adbd without root permissions.
|
|
||||||
export extern "adb unroot" []
|
|
||||||
|
|
||||||
# Restart adbd listening on USB.
|
|
||||||
export extern "adb usb" []
|
|
||||||
|
|
||||||
# Restart adbd listening on TCP on PORT.
|
|
||||||
export extern "adb tcpip" [
|
|
||||||
PORT:string
|
|
||||||
]
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# SDK Platform Tools completions
|
|
||||||
|
|
||||||
A Nushell extern definition and completers for [Android Debugger Bridge `adb`](https://developer.android.com/tools/adb).
|
|
||||||
|
|
||||||
|
|
||||||
This module provides extern definitions for almost all of the `adb` commands and their flags.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
simply import the extern definitions with
|
|
||||||
|
|
||||||
```nu
|
|
||||||
use path/to/adb-completions.nu * # don't forget the star `*`
|
|
||||||
```
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
```nu
|
|
||||||
source path/to/adb-completions.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Once imported completions will be available for commands, flags, options, and some values as well.
|
|
||||||
Display the commands by entering the `→ tab` key in the command line after `adb`or any of it's command options.
|
|
||||||
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
# author: HirschBerge
|
|
||||||
# inspired by DWTW
|
|
||||||
|
|
||||||
def videoQuality [] {
|
|
||||||
[ "worst", "360p", "480p", "720p", "1080p", "4K", "best" ]
|
|
||||||
}
|
|
||||||
def common_episodes [] {
|
|
||||||
[ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ]
|
|
||||||
}
|
|
||||||
def common_ranges [] {
|
|
||||||
[ "1-5", "5-10", "1-13", "14-26", "1-26" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
# Anime Search and Streaming Tool
|
|
||||||
export extern "ani-cli" [
|
|
||||||
string?
|
|
||||||
-q: int@videoQuality # Specify video quality
|
|
||||||
--quality: int@videoQuality # Specify video quality
|
|
||||||
-s # Use Syncplay to watch with friends
|
|
||||||
--syncplay # Use Syncplay to watch with friends
|
|
||||||
-f # Use FZF for selection
|
|
||||||
--fzf # Use FZF for selection
|
|
||||||
-e: string@common_episodes # Specify episode number
|
|
||||||
--episode: string@common_episodes # Specify episode number
|
|
||||||
-d # Download the episode instead of playing it
|
|
||||||
--download # Download the episode instead of playing it
|
|
||||||
-p # Download episode to a specified directory
|
|
||||||
--path: string # Download episode to a specified directory
|
|
||||||
-c # Continue watching from history
|
|
||||||
--continue # Continue watching from history
|
|
||||||
-h # Show help text
|
|
||||||
--help # Show help text
|
|
||||||
-D # Delete history
|
|
||||||
--delete # Delete history
|
|
||||||
-l # Show logs
|
|
||||||
--log-view # Show logs
|
|
||||||
-U # Update the script
|
|
||||||
--update # Update the script
|
|
||||||
-V # Show the version of the script
|
|
||||||
--version # Show the version of the script
|
|
||||||
-r: string@common_ranges # Specify range number
|
|
||||||
--range: string@common_ranges # Specify range number
|
|
||||||
--skip # Use ani-skip to skip intros (mpv only)
|
|
||||||
--dub # Play dubbed version
|
|
||||||
--rofi # Use rofi instead of fzf for menu
|
|
||||||
--no-detach # Don't detach the player (mpv only)
|
|
||||||
--exit-after-play # Exit after playing (mpv only)
|
|
||||||
--skip-title: string # Use the given title for ani-skip query
|
|
||||||
-N # Display a countdown to the next episode
|
|
||||||
--nextep-countdown # Display a countdown to the next episode
|
|
||||||
]
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
# Omit false conditionals
|
|
||||||
export extern "as" [
|
|
||||||
--alternate # Initially turn on alternate macro syntax
|
|
||||||
--nocompress-debug-sections # Dont compress DWARF debug sections
|
|
||||||
--execstack # Require executable stack for this object
|
|
||||||
--noexecstack # Dont require executable stack for this object
|
|
||||||
--elf-stt-common # Generate ELF common symbols with STT_COMMON type
|
|
||||||
--sectname-subst # Enable section name substitution sequences
|
|
||||||
--gen-debug(-g) # Generate debugging information
|
|
||||||
--gstabs # Generate STABS debugging information
|
|
||||||
# --gstabs+ # (breaks the nu parser) Generate STABS debug info with GNU extensions
|
|
||||||
--gdwarf-2 # Generate DWARF2 debugging information
|
|
||||||
--gdwarf-sections # Generate per-function section names for DWARF line information
|
|
||||||
--help # Show help message and exit
|
|
||||||
--target-help # Show target specific options
|
|
||||||
--mri(-M) # Assemble in MRI compatibility mode
|
|
||||||
--reduce-memory-overheads # Prefer smaller memory use
|
|
||||||
--statistics # Print various measured statistics from execution
|
|
||||||
--strip-local-absolute # Strip local absolute symbols
|
|
||||||
--traditional-format # Use same format as native assembler when possible
|
|
||||||
--version # Print assembler version number and exit
|
|
||||||
--no-warn(-W) # Suppress warnings
|
|
||||||
--warn # Dont suppress warnings
|
|
||||||
--fatal-warnings # Treat warnings as errors
|
|
||||||
--listing-lhs-width
|
|
||||||
--listing-lhs-width2
|
|
||||||
--listing-rhs-width
|
|
||||||
--listing-cont-lines
|
|
||||||
--32 # Generate 32 bits code
|
|
||||||
--64 # Generate 64 bits code
|
|
||||||
--x32 # Generate x32 code
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Generate ELF common symbols with STT_COMMON type
|
|
||||||
export extern "as yes no" [
|
|
||||||
--alternate # Initially turn on alternate macro syntax
|
|
||||||
--nocompress-debug-sections # Dont compress DWARF debug sections
|
|
||||||
--execstack # Require executable stack for this object
|
|
||||||
--noexecstack # Dont require executable stack for this object
|
|
||||||
--elf-stt-common # Generate ELF common symbols with STT_COMMON type
|
|
||||||
--sectname-subst # Enable section name substitution sequences
|
|
||||||
--gen-debug(-g) # Generate debugging information
|
|
||||||
--gstabs # Generate STABS debugging information
|
|
||||||
# --gstabs+ # (breaks the nu parser) Generate STABS debug info with GNU extensions
|
|
||||||
--gdwarf-2 # Generate DWARF2 debugging information
|
|
||||||
--gdwarf-sections # Generate per-function section names for DWARF line information
|
|
||||||
--help # Show help message and exit
|
|
||||||
--target-help # Show target specific options
|
|
||||||
--mri(-M) # Assemble in MRI compatibility mode
|
|
||||||
--reduce-memory-overheads # Prefer smaller memory use
|
|
||||||
--statistics # Print various measured statistics from execution
|
|
||||||
--strip-local-absolute # Strip local absolute symbols
|
|
||||||
--traditional-format # Use same format as native assembler when possible
|
|
||||||
--version # Print assembler version number and exit
|
|
||||||
--no-warn(-W) # Suppress warnings
|
|
||||||
--warn # Dont suppress warnings
|
|
||||||
--fatal-warnings # Treat warnings as errors
|
|
||||||
--listing-lhs-width
|
|
||||||
--listing-lhs-width2
|
|
||||||
--listing-rhs-width
|
|
||||||
--listing-cont-lines
|
|
||||||
--32 # Generate 32 bits code
|
|
||||||
--64 # Generate 64 bits code
|
|
||||||
--x32 # Generate x32 code
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
# auto-generate completions
|
|
||||||
|
|
||||||
- basic helpers to parse --help information from cli commands and export nu completions source
|
|
||||||
- basic helpers tp parse .fish complete files and export nu completions source
|
|
||||||
|
|
||||||
# parse-fish
|
|
||||||
|
|
||||||
## current
|
|
||||||
- only parses out simple complete's with no complete's boolean arguments like -f
|
|
||||||
- does not map fish autocomplete helpers to nu-complete helps (a nu library of autocomplete utils would be neat)
|
|
||||||
|
|
||||||
## usage
|
|
||||||
|
|
||||||
be in a directory with one or more .fish completion scripts
|
|
||||||
|
|
||||||
A good one is
|
|
||||||
|
|
||||||
`git clone https://github.com/fish-shell/fish-shell`
|
|
||||||
`cd fish-shell/share/completions`
|
|
||||||
|
|
||||||
To build all .fish files in the current directory `build-completions-from-pwd`
|
|
||||||
|
|
||||||
```nu
|
|
||||||
build-completions-from-pwd
|
|
||||||
ls *.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
To build a single .fish file and choose the output file
|
|
||||||
```nu
|
|
||||||
build-completion cargo.fish cargo.nu
|
|
||||||
```
|
|
||||||
# parse-help
|
|
||||||
|
|
||||||
## current limitations
|
|
||||||
|
|
||||||
- Only flags are parsed, arguments are not parsed and ...args is injected at the end to catch all
|
|
||||||
- Some examples of `--flags` in descriptions can throw off the regex and get included in the parsed flags
|
|
||||||
- `<format>` (types) to flags are parsed, but not added to the nu shell completion type hints
|
|
||||||
|
|
||||||
## usage
|
|
||||||
|
|
||||||
generate and save source to a file
|
|
||||||
|
|
||||||
```nu
|
|
||||||
source parse-help.nu
|
|
||||||
cargo --help | parse-help | make-completion cargo | save cargo.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
## example
|
|
||||||
|
|
||||||
This can be saved to a file and sourced. Example of output
|
|
||||||
|
|
||||||
```nu
|
|
||||||
extern "cargo" [
|
|
||||||
--version(-V) #Print version info and exit
|
|
||||||
--list #List installed commands
|
|
||||||
--explain #Run `rustc --explain CODE`
|
|
||||||
--verbose(-v) #Use verbose output (-vv very verbose/build.rs output)
|
|
||||||
--quiet(-q) #Do not print cargo log messages
|
|
||||||
--color #Coloring: auto, always, never
|
|
||||||
--frozen #Require Cargo.lock and cache are up to date
|
|
||||||
--locked #Require Cargo.lock is up to date
|
|
||||||
--offline #Run without accessing the network
|
|
||||||
--config #Override a configuration value (unstable)
|
|
||||||
--help(-h) #Print help information
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
extern "nu" [
|
|
||||||
--help(-h) #Display this help message
|
|
||||||
--stdin #redirect the stdin
|
|
||||||
--login(-l) #start as a login shell
|
|
||||||
--interactive(-i) #start as an interactive shell
|
|
||||||
--version(-v) #print the version
|
|
||||||
--perf(-p) #start and print performance metrics during startup
|
|
||||||
--testbin #run internal test binary
|
|
||||||
--commands(-c) #run the given commands and then exit
|
|
||||||
--config #start with an alternate config file
|
|
||||||
--env-config #start with an alternate environment config file
|
|
||||||
--log-level #log level for performance logs
|
|
||||||
--threads(-t) #threads to use for parallel commands
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
```
|
|
||||||
|
|
||||||
Which outputs like so on tab completion for `cargo --`
|
|
||||||
```
|
|
||||||
❯ | cargo --
|
|
||||||
--color Coloring: auto, always, never
|
|
||||||
--config Override a configuration value (unstable)
|
|
||||||
--explain Run `rustc --explain CODE`
|
|
||||||
--frozen Require Cargo.lock and cache are up to date
|
|
||||||
--help Display this help message
|
|
||||||
--help Print help information
|
|
||||||
--list List installed commands
|
|
||||||
--locked Require Cargo.lock is up to date
|
|
||||||
--offline Run without accessing the network
|
|
||||||
--quiet Do not print cargo log messages
|
|
||||||
--verbose Use verbose output (-vv very verbose/build.rs output)
|
|
||||||
--version Print version info and exit
|
|
||||||
```
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
# Add
|
|
||||||
extern "7z a" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Benchmark
|
|
||||||
extern "7z b" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Delete
|
|
||||||
extern "7z d" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Extract
|
|
||||||
extern "7z e" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Hash
|
|
||||||
extern "7z h" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show information about supported formats
|
|
||||||
extern "7z i" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List
|
|
||||||
extern "7z l" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Rename
|
|
||||||
extern "7z rn" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Test
|
|
||||||
extern "7z t" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Update
|
|
||||||
extern "7z u" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Extract with full paths
|
|
||||||
extern "7z x" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Stop switches parsing
|
|
||||||
extern "7z" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
extern "7za" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
extern "7zr" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# Enable or disamble VRDE server or don't change setting
|
|
||||||
extern "VBoxHeadless on off config" [
|
|
||||||
--vrde(-v) # Enable or disamble VRDE server or don't change setting
|
|
||||||
--settingspwfile # Specify file containing setting password
|
|
||||||
--start-paused # Start VM in paused state
|
|
||||||
--filename(-f) # File name when recording
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Specify file containing setting password
|
|
||||||
extern "VBoxHeadless" [
|
|
||||||
--vrde(-v) # Enable or disamble VRDE server or don't change setting
|
|
||||||
--settingspwfile # Specify file containing setting password
|
|
||||||
--start-paused # Start VM in paused state
|
|
||||||
--filename(-f) # File name when recording
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Run separate VM process or attach to a running VM
|
|
||||||
extern "VBoxSDL" [
|
|
||||||
--seperate # Run separate VM process or attach to a running VM
|
|
||||||
--hda # Set temporary first hard disk
|
|
||||||
--fda # Set temporary first floppy disk
|
|
||||||
--fullscreen # Start VM in fullscreen mode
|
|
||||||
--fullscreenresize # Resize guest on fullscreen
|
|
||||||
--nofstoggle # Forbid switching to/from fullscreen mode
|
|
||||||
--noresize # Make SDL frame non resizable
|
|
||||||
--nohostkey # Disable all hoskey combinations
|
|
||||||
--nohostkeys # Disable specific hostkey combinations
|
|
||||||
--nograbonclick # Disable mouse/keyboard grabbing on mouse click w/o additions
|
|
||||||
--detecthostkey # Get hostkey identifier and modifier state
|
|
||||||
--termacpi # Send APCI power button when closing window
|
|
||||||
--vrdp # Listen for VRDP connexions on if one of specified
|
|
||||||
--discardstate # Discard saved state (if present) and revert to last snapshot (if present)
|
|
||||||
--settingspwfile # Specify file containing setting password
|
|
||||||
--rowr0 # Enable raw ring 3
|
|
||||||
--rowr3 # Enable raw ring 0
|
|
||||||
--patm # Enable PATM
|
|
||||||
--csam # Enable CSAM
|
|
||||||
--hwvirtex # Permit usage of VT-x/AMD-V
|
|
||||||
--norowr0 # Disable raw ring 3
|
|
||||||
--norowr3 # Disable raw ring 0
|
|
||||||
--nopatm # Disable PATM
|
|
||||||
--nocsam # Disable CSAM
|
|
||||||
--nohwvirtex # Deny usage of VT-x/AMD-V
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Don't show informative messages
|
|
||||||
extern "a2disconf" [
|
|
||||||
--quiet(-q) # Don't show informative messages
|
|
||||||
--purge(-p) # Purge all traces of module
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Don't show informative messages
|
|
||||||
extern "a2dismod" [
|
|
||||||
--quiet(-q) # Don't show informative messages
|
|
||||||
--purge(-p) # Purge all traces of module
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Don't show informative messages
|
|
||||||
extern "a2dissite" [
|
|
||||||
--quiet(-q) # Don't show informative messages
|
|
||||||
--purge(-p) # Purge all traces of module
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Don't show informative messages
|
|
||||||
extern "a2enconf" [
|
|
||||||
--quiet(-q) # Don't show informative messages
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Don't show informative messages
|
|
||||||
extern "a2enmod" [
|
|
||||||
--quiet(-q) # Don't show informative messages
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Don't show informative messages
|
|
||||||
extern "a2ensite" [
|
|
||||||
--quiet(-q) # Don't show informative messages
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# Add abbreviation
|
|
||||||
extern "abbr" [
|
|
||||||
--add(-a) # Add abbreviation
|
|
||||||
--query(-q) # Check if an abbreviation exists
|
|
||||||
--rename(-r) # Rename an abbreviation
|
|
||||||
--erase(-e) # Erase abbreviation
|
|
||||||
--show(-s) # Print all abbreviations
|
|
||||||
--list(-l) # Print all abbreviation names
|
|
||||||
--global(-g) # Store abbreviation in a global variable
|
|
||||||
--universal(-U) # Store abbreviation in a universal variable
|
|
||||||
--help(-h) # Help
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Show usage
|
|
||||||
extern "abook" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#
|
|
||||||
extern "acat" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Show battery information
|
|
||||||
extern "acpi" [
|
|
||||||
--battery(-b) # Show battery information
|
|
||||||
--without-battery(-B) # Suppress battery information
|
|
||||||
--thermal(-t) # Show thermal information
|
|
||||||
--without-thermal(-T) # Suppress thermal information
|
|
||||||
--ac-adapter(-a) # Show ac adapter information
|
|
||||||
--without-ac-adapter(-A) # Suppress ac-adapter information
|
|
||||||
--everything(-V) # Show every device, overrides above options
|
|
||||||
--show-empty(-s) # Show non-operational devices
|
|
||||||
--hide-empty(-S) # Hide non-operational devices
|
|
||||||
--celcius(-c) # Use celsius as the temperature unit
|
|
||||||
--fahrenheit(-f) # Use fahrenheit as the temperature unit
|
|
||||||
--kelvin(-k) # Use kelvin as the temperature unit
|
|
||||||
--directory(-d) # <dir> path to ACPI info (/proc/acpi)
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-v) # Output version information and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Do not run passwd to set the password
|
|
||||||
extern "adduser" [
|
|
||||||
--disabled-login # Do not run passwd to set the password
|
|
||||||
--disabled-password # Do not set password, but allow non-password logins (e.g. SSH RSA)
|
|
||||||
--force-badname # Apply only a weak check for validity of the user/group name
|
|
||||||
--group # Create a group
|
|
||||||
--help # Display brief instructions
|
|
||||||
--no-create-home # Do not create the home directory
|
|
||||||
--quiet # Suppress informational messages, only show warnings and errors
|
|
||||||
--debug # Be verbose, most useful if you want to nail down a problem with adduser
|
|
||||||
--system # Create a system user or group
|
|
||||||
--add_extra_groups # Add new user to extra groups defined in the configuration file
|
|
||||||
--version # Display version and copyright information
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
extern "adiff" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Show help and exit
|
|
||||||
extern "alias" [
|
|
||||||
--help(-h) # Show help and exit
|
|
||||||
--save(-s) # Automatically funcsave the alias
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#
|
|
||||||
extern "als" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# Select the configuration file to use
|
|
||||||
extern "alsactl" [
|
|
||||||
--file(-f) # Select the configuration file to use
|
|
||||||
--lock(-l) # Use a lock file
|
|
||||||
--no-lock(-L) # Do not use a lock file
|
|
||||||
--lock-state-file(-O) # Select the state lock file path
|
|
||||||
--runstate(-r) # Save restore and init state to this file
|
|
||||||
--remove(-R) # Remove runstate file at first
|
|
||||||
--env(-E) # Set environment variable
|
|
||||||
--initfile(-i) # The configuration file for init
|
|
||||||
--pid-file(-e) # The PID file to use
|
|
||||||
--background(-b) # Run the task in background
|
|
||||||
--syslog(-s) # Use syslog for messages
|
|
||||||
--sched-idle(-c) # Set the process scheduling policy to idle (SCHED_IDLE)
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Show help
|
|
||||||
extern "alsamixer" [
|
|
||||||
--help(-h) # Show help
|
|
||||||
--no-color(-g) # Toggle the using of colors
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Generate more comments about what alternatives is doing
|
|
||||||
extern "alternatives" [
|
|
||||||
--verbose # Generate more comments about what alternatives is doing
|
|
||||||
--help # Give some usage information
|
|
||||||
--version # Tell which version of alternatives this is
|
|
||||||
--keep-missing # If new variant doesn't provide some files, keep previous links
|
|
||||||
--altdir # Specifies the alternatives directory
|
|
||||||
--admindir # Specifies the administrative directory
|
|
||||||
--remove # Remove an alternative and all of its associated slave links
|
|
||||||
--set # Set link group to given path
|
|
||||||
--config # Open menu to configure link group
|
|
||||||
--auto # Switch the master symlink name to automatic mode
|
|
||||||
--display # Display information about the link group
|
|
||||||
--list # Display information about all link groups
|
|
||||||
--remove-all # Remove the whole link group name
|
|
||||||
--add-slave # Add a slave link to an existing alternative
|
|
||||||
--remove-slave # Remove slave from an existing alternative
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#
|
|
||||||
extern "amixer" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "and" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Control alpha/matte channel of an image [option]
|
|
||||||
extern "animate" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# Show version and config
|
|
||||||
extern "ansible-galaxy" [
|
|
||||||
--version # Show version and config
|
|
||||||
--verbose(-v) # Verbose mode (-vvv for more, -vvvv for connection debugging)
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
#
|
|
||||||
extern "ansible-galaxy download\t'Download collections as tarball" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
#
|
|
||||||
extern "ansible-galaxy init\t'Initialize new role with the base structure" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Ask for vault password
|
|
||||||
extern "ansible-playbook" [
|
|
||||||
--ask-vault-pass # Ask for vault password
|
|
||||||
--check(-C) # Just check, don't make any changes
|
|
||||||
--diff(-D) # Show the differences in files and templates
|
|
||||||
--flush-cache # Clear the fact cache
|
|
||||||
--force-handlers # Run handlers even if a task fails
|
|
||||||
--help(-h) # Shows a help message
|
|
||||||
--list-hosts # List all matching hosts
|
|
||||||
--list-tags # List all available tags
|
|
||||||
--list-tasks # List all tasks that would be executed
|
|
||||||
--new-vault-password-file # New vault password file for rekey
|
|
||||||
--output # Output file name for encrypt or decrypt; use - for stdout
|
|
||||||
--step # Confirm each task before running
|
|
||||||
--syntax-check # Perform a syntax check on the playbook
|
|
||||||
--vault-password-file # Vault password file
|
|
||||||
--verbose(-v) # Verbose mode (-vv/-vvv/-vvvv for more)
|
|
||||||
--version # Display version and exit
|
|
||||||
--ask-pass(-k) # Ask for connection password
|
|
||||||
--connection(-c) # Connection type to use (default=smart)
|
|
||||||
--timeout(-T) # Set the connection timeout in seconds (default=10)
|
|
||||||
--ssh-common-args # Specify common arguments to pass to sftp/scp/ssh
|
|
||||||
--sftp-extra-args # Specify extra arguments to pass to sftp only
|
|
||||||
--scp-extra-args # Specify extra arguments to pass to scp only
|
|
||||||
--ssh-extra-args # Specify extra arguments to pass to ssh only
|
|
||||||
--become(-b) # Run operations with become
|
|
||||||
--ask-become-pass(-K) # Ask for privilege escalation password
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Display version and exit
|
|
||||||
extern "ansible-vault" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Decrypt encrypted file or stdin
|
|
||||||
extern "ansible-vault decrypt" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Encrypt a file or stdin
|
|
||||||
extern "ansible-vault encrypt" [
|
|
||||||
--prompt(-p) # Prompt for the string to encrypt
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Encrypt string
|
|
||||||
extern "ansible-vault encrypt_string" [
|
|
||||||
--prompt(-p) # Prompt for the string to encrypt
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# Ask for vault password
|
|
||||||
extern "ansible" [
|
|
||||||
--ask-vault-pass # Ask for vault password
|
|
||||||
--check(-C) # Just check, don't make any changes
|
|
||||||
--diff(-D) # Show the differences in files and templates
|
|
||||||
--help(-h) # Shows a help message
|
|
||||||
--new-vault-password-file # New vault password file for rekey
|
|
||||||
--one-line(-o) # Condense output
|
|
||||||
--output # Output file name for encrypt or decrypt; use - for stdout
|
|
||||||
--syntax-check # Perform a syntax check on the playbook
|
|
||||||
--vault-password-file # Vault password file
|
|
||||||
--verbose(-v) # Verbose mode (-vv/-vvv/-vvvv for more)
|
|
||||||
--version # Display version and exit
|
|
||||||
--ask-pass(-k) # Ask for connection password
|
|
||||||
--connection(-c) # Connection type to use (default=smart)
|
|
||||||
--timeout(-T) # Set the connection timeout in seconds (default=10)
|
|
||||||
--ssh-common-args # Specify common arguments to pass to sftp/scp/ssh
|
|
||||||
--sftp-extra-args # Specify extra arguments to pass to sftp only
|
|
||||||
--scp-extra-args # Specify extra arguments to pass to scp only
|
|
||||||
--ssh-extra-args # Specify extra arguments to pass to ssh only
|
|
||||||
--become(-b) # Run operations with become
|
|
||||||
--ask-become-pass(-K) # Ask for privilege escalation password
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# print help message and ant help
|
|
||||||
extern "ant" [
|
|
||||||
--h # print help message and ant help
|
|
||||||
--noconfig # suppress sourcing of configuration files
|
|
||||||
--usejikes # enable use of jikes by default
|
|
||||||
--execdebug # print ant exec line generated by this launch script
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
extern "apack" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,185 +0,0 @@
|
|||||||
# Show help
|
|
||||||
extern "apk" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Add packages
|
|
||||||
extern "apk add" [
|
|
||||||
--simulate(-s) # Simulate the requested operation
|
|
||||||
--clean-protected # Don't create .apk-new files
|
|
||||||
--overlay-from-stdin # Read list of overlay files from stdin
|
|
||||||
--no-scripts # Don't execute any scripts
|
|
||||||
--no-commit-hooks # Skip pre/post hook scripts
|
|
||||||
--initramfs-diskless-boot # Enables options for diskless initramfs boot
|
|
||||||
--initdb # Initialize database
|
|
||||||
--upgrade(-u) # Prefer to upgrade package
|
|
||||||
--latest(-l) # Select latest version of package
|
|
||||||
--no-chown # Don't change file owner or group
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove packages
|
|
||||||
extern "apk del" [
|
|
||||||
--simulate(-s) # Simulate the requested operation
|
|
||||||
--clean-protected # Don't create .apk-new files
|
|
||||||
--overlay-from-stdin # Read list of overlay files from stdin
|
|
||||||
--no-scripts # Don't execute any scripts
|
|
||||||
--no-commit-hooks # Skip pre/post hook scripts
|
|
||||||
--initramfs-diskless-boot # Enables options for diskless initramfs boot
|
|
||||||
--rdepends(-r) # Remove unneeded dependencies too
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Repair package
|
|
||||||
extern "apk fix" [
|
|
||||||
--simulate(-s) # Simulate the requested operation
|
|
||||||
--clean-protected # Don't create .apk-new files
|
|
||||||
--overlay-from-stdin # Read list of overlay files from stdin
|
|
||||||
--no-scripts # Don't execute any scripts
|
|
||||||
--no-commit-hooks # Skip pre/post hook scripts
|
|
||||||
--initramfs-diskless-boot # Enables options for diskless initramfs boot
|
|
||||||
--depends(-d) # Fix all dependencies too
|
|
||||||
--reinstall(-r) # Reinstall the package
|
|
||||||
--upgrade(-u) # Prefer to upgrade package
|
|
||||||
--xattr(-x) # Fix packages with broken xattrs
|
|
||||||
--directory-permissions # Reset all directory permissions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Update repository indexes
|
|
||||||
extern "apk update" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Give detailed information about packages
|
|
||||||
extern "apk info" [
|
|
||||||
--contents(-L) # List included files
|
|
||||||
--installed(-e) # Check PACKAGE installed status
|
|
||||||
--depends(-R) # List the dependencies
|
|
||||||
--provides(-P) # List virtual packages provided
|
|
||||||
--rdepends(-r) # List reverse dependencies
|
|
||||||
--replaces # List packages that PACKAGE might replace
|
|
||||||
--install-if # List install_if rule
|
|
||||||
--rinstall-if # List packages having install_if referencing PACKAGE
|
|
||||||
--webpage(-w) # Print the URL for the upstream
|
|
||||||
--size(-s) # Show installed size
|
|
||||||
--description(-d) # Print the description
|
|
||||||
--license # Print the license
|
|
||||||
--triggers # Print active triggers
|
|
||||||
--all(-a) # Print all information
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List packages
|
|
||||||
extern "apk list" [
|
|
||||||
--installed(-I) # List installed packages only
|
|
||||||
--orphaned(-O) # List orphaned packages only
|
|
||||||
--available(-a) # List available packages only
|
|
||||||
--upgradable(-u) # List upgradable packages only
|
|
||||||
--origin(-o) # List packages by origin
|
|
||||||
--depends(-d) # List packages by dependency
|
|
||||||
--providers(-P) # List packages by provider
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Search package
|
|
||||||
extern "apk search" [
|
|
||||||
--all(-a) # Show all package versions
|
|
||||||
--description(-d) # Search package descriptions
|
|
||||||
--exact(-x) # Require exact match
|
|
||||||
--origin(-o) # Print origin package name
|
|
||||||
--rdepends(-r) # Print reverse dependencies
|
|
||||||
--has-origin # List packages that have the given origin
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Upgrade installed packages
|
|
||||||
extern "apk upgrade" [
|
|
||||||
--simulate(-s) # Simulate the requested operation
|
|
||||||
--clean-protected # Don't create .apk-new files
|
|
||||||
--overlay-from-stdin # Read list of overlay files from stdin
|
|
||||||
--no-scripts # Don't execute any scripts
|
|
||||||
--no-commit-hooks # Skip pre/post hook scripts
|
|
||||||
--initramfs-diskless-boot # Enables options for diskless initramfs boot
|
|
||||||
--available(-a) # Reset all packages to the provided versions
|
|
||||||
--latest(-l) # Select latest version of package
|
|
||||||
--no-self-upgrade # Don't do early upgrade of the apk
|
|
||||||
--self-upgrade-only # Only do self-upgrade
|
|
||||||
--ignore # Ignore the upgrade of PACKAGE
|
|
||||||
--prune # Prune the WORLD by removing packages which are no longer available
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Manage local package cache
|
|
||||||
extern "apk cache" [
|
|
||||||
--upgrade(-u) # Prefer to upgrade package
|
|
||||||
--latest(-l) # Select latest version of package
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Compare package versions
|
|
||||||
extern "apk version" [
|
|
||||||
--indexes(-I) # Print description and versions of indexes
|
|
||||||
--test(-t) # Compare two given versions
|
|
||||||
--check(-c) # Check the given version strings
|
|
||||||
--all(-a) # Consider packages from all repository tags
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Create repository index file
|
|
||||||
extern "apk index" [
|
|
||||||
--no-warnings # Disable the warning about missing dependencies
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Download packages
|
|
||||||
extern "apk fetch" [
|
|
||||||
--link(-L) # Create hard links
|
|
||||||
--recursive(-R) # Fetch all dependencies too
|
|
||||||
--simulate # Simulate the requested operation
|
|
||||||
--stdout(-s) # Dump the .apk to stdout
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Audit the directories for changes
|
|
||||||
extern "apk audit" [
|
|
||||||
--backup # Audit configuration files only
|
|
||||||
--system # Audit all system files
|
|
||||||
--check-permissions # Check file permissions too
|
|
||||||
--recursive(-r) # Descend into directories and audit them as well
|
|
||||||
--packages # List only the changed packages
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Verify package integrity and signature
|
|
||||||
extern "apk verify" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Generate graphviz graphs
|
|
||||||
extern "apk dot" [
|
|
||||||
--errors # Consider only packages with errors
|
|
||||||
--installed # Consider only installed packages
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show repository policy for packages
|
|
||||||
extern "apk policy" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show statistics about repositories and installations
|
|
||||||
extern "apk stats" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show checksums of package contents
|
|
||||||
extern "apk manifest" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apropos" [
|
|
||||||
--help(-?) # Display help and exit
|
|
||||||
--usage # Display short usage message
|
|
||||||
--debug(-d) # Print debugging info
|
|
||||||
--verbose(-v) # Verbose mode
|
|
||||||
--regex(-r) # Keyword as regex (default)
|
|
||||||
--wildcard(-w) # Keyword as wildcards
|
|
||||||
--exact(-e) # Keyword as exactly match
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--and(-a) # Match all keywords
|
|
||||||
--long(-l) # Do not trim output to terminal width
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
[# Display help and exit
|
|
||||||
extern "apt-build" [
|
|
||||||
--help # Display help and exit
|
|
||||||
--nowrapper # Do not use gcc wrapper
|
|
||||||
--remove-builddep # Remove build-dep
|
|
||||||
--no-source # Do not download source
|
|
||||||
--build-dir # Specify build-dir
|
|
||||||
--rebuild # Rebuild a package
|
|
||||||
--reinstall # Rebuild and install an installed package
|
|
||||||
--patch-strip(-p) # Prefix to strip on patch
|
|
||||||
--yes(-y) # Assume yes to all questions
|
|
||||||
--purge # Use purge instead of remove
|
|
||||||
--noupdate # Do not run update
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
# Update list of packages
|
|
||||||
extern "apt-build update" [
|
|
||||||
--help # Display help and exit
|
|
||||||
--nowrapper # Do not use gcc wrapper
|
|
||||||
--remove-builddep # Remove build-dep
|
|
||||||
--no-source # Do not download source
|
|
||||||
--build-dir # Specify build-dir
|
|
||||||
--rebuild # Rebuild a package
|
|
||||||
--reinstall # Rebuild and install an installed package
|
|
||||||
--patch-strip(-p) # Prefix to strip on patch
|
|
||||||
--yes(-y) # Assume yes to all questions
|
|
||||||
--purge # Use purge instead of remove
|
|
||||||
--noupdate # Do not run update
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
# Upgrade packages
|
|
||||||
extern "apt-build upgrade" [
|
|
||||||
--help # Display help and exit
|
|
||||||
--nowrapper # Do not use gcc wrapper
|
|
||||||
--remove-builddep # Remove build-dep
|
|
||||||
--no-source # Do not download source
|
|
||||||
--build-dir # Specify build-dir
|
|
||||||
--rebuild # Rebuild a package
|
|
||||||
--reinstall # Rebuild and install an installed package
|
|
||||||
--patch-strip(-p) # Prefix to strip on patch
|
|
||||||
--yes(-y) # Assume yes to all questions
|
|
||||||
--purge # Use purge instead of remove
|
|
||||||
--noupdate # Do not run update
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]]
|
|
||||||
|
|
||||||
[# Rebuild your system
|
|
||||||
extern "apt-bulid world" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]]
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-cache" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Build apt cache
|
|
||||||
extern "apt-cache gencaches" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show cache statistics
|
|
||||||
extern "apt-cache stats" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show packages in cache
|
|
||||||
extern "apt-cache dump" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Print available list
|
|
||||||
extern "apt-cache dumpavail" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List unmet dependencies in cache
|
|
||||||
extern "apt-cache unmet" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Search full package name
|
|
||||||
extern "apt-cache search" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-cdrom" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--rename(-r) # Rename a disc
|
|
||||||
--no-mount(-m) # No mounting
|
|
||||||
--fast(-f) # Fast copy
|
|
||||||
--thorough(-a) # Thorough package scan
|
|
||||||
--no-act(-n) # No changes
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-config" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Access config file from shell
|
|
||||||
extern "apt-config shell" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Dump contents of config file
|
|
||||||
extern "apt-config dump" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-extracttemplates" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-file" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--verbose(-v) # Verbose mode
|
|
||||||
--cdrom-mount(-d) # Use cdrom-mount-point
|
|
||||||
--ignore-case(-i) # Do not expand pattern
|
|
||||||
--regexp(-x) # Pattern is regexp
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--architecture(-a) # Set arch
|
|
||||||
--package-only(-l) # Only display package name
|
|
||||||
--fixed-string(-F) # Do not expand pattern
|
|
||||||
--dummy(-y) # Run in dummy mode
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-ftparchive" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--md5 # Generate MD5 sums
|
|
||||||
--db(-d) # Use a binary db
|
|
||||||
--quiet(-q) # Quiet mode
|
|
||||||
--delink # Perform delinking
|
|
||||||
--contents # Perform contents generation
|
|
||||||
--source-override(-s) # Use source override
|
|
||||||
--readonly # Make caching db readonly
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Generate package from source
|
|
||||||
extern "apt-ftparchive packages" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--md5 # Generate MD5 sums
|
|
||||||
--db(-d) # Use a binary db
|
|
||||||
--quiet(-q) # Quiet mode
|
|
||||||
--delink # Perform delinking
|
|
||||||
--contents # Perform contents generation
|
|
||||||
--source-override(-s) # Use source override
|
|
||||||
--readonly # Make caching db readonly
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Generate source index file
|
|
||||||
extern "apt-ftparchive sources" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--md5 # Generate MD5 sums
|
|
||||||
--db(-d) # Use a binary db
|
|
||||||
--quiet(-q) # Quiet mode
|
|
||||||
--delink # Perform delinking
|
|
||||||
--contents # Perform contents generation
|
|
||||||
--source-override(-s) # Use source override
|
|
||||||
--readonly # Make caching db readonly
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Generate contents file
|
|
||||||
extern "apt-ftparchive contents" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--md5 # Generate MD5 sums
|
|
||||||
--db(-d) # Use a binary db
|
|
||||||
--quiet(-q) # Quiet mode
|
|
||||||
--delink # Perform delinking
|
|
||||||
--contents # Perform contents generation
|
|
||||||
--source-override(-s) # Use source override
|
|
||||||
--readonly # Make caching db readonly
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Generate release file
|
|
||||||
extern "apt-ftparchive release" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--md5 # Generate MD5 sums
|
|
||||||
--db(-d) # Use a binary db
|
|
||||||
--quiet(-q) # Quiet mode
|
|
||||||
--delink # Perform delinking
|
|
||||||
--contents # Perform contents generation
|
|
||||||
--source-override(-s) # Use source override
|
|
||||||
--readonly # Make caching db readonly
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove records
|
|
||||||
extern "apt-ftparchive clean" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--md5 # Generate MD5 sums
|
|
||||||
--db(-d) # Use a binary db
|
|
||||||
--quiet(-q) # Quiet mode
|
|
||||||
--delink # Perform delinking
|
|
||||||
--contents # Perform contents generation
|
|
||||||
--source-override(-s) # Use source override
|
|
||||||
--readonly # Make caching db readonly
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-get" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Update sources
|
|
||||||
extern "apt-get update" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Upgrade or install newest packages
|
|
||||||
extern "apt-get upgrade" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Use with dselect front-end
|
|
||||||
extern "apt-get dselect-upgrade" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Distro upgrade
|
|
||||||
extern "apt-get dist-upgrade" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Install one or more packages
|
|
||||||
extern "apt-get install" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Display changelog of one or more packages
|
|
||||||
extern "apt-get changelog" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove and purge one or more packages
|
|
||||||
extern "apt-get purge" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove one or more packages
|
|
||||||
extern "apt-get remove" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Fetch source packages
|
|
||||||
extern "apt-get source" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Install/remove packages for dependencies
|
|
||||||
extern "apt-get build-dep" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Update cache and check dependencies
|
|
||||||
extern "apt-get check" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Clean local caches and packages
|
|
||||||
extern "apt-get clean" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Clean packages no longer be downloaded
|
|
||||||
extern "apt-get autoclean" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove automatically installed packages
|
|
||||||
extern "apt-get autoremove" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Remove a key
|
|
||||||
extern "apt-key del" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List trusted keys
|
|
||||||
extern "apt-key list" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,181 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-listbugs" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--severity(-s) # Set severity
|
|
||||||
--tag(-T) # Tags you want to see
|
|
||||||
--stats(-S) # Bug-status you want to see
|
|
||||||
--showless(-l) # Ignore bugs in your system
|
|
||||||
--showgreater(-g) # Ignore newer bugs than upgrade packages
|
|
||||||
--show-downgrade(-D) # Bugs for downgrade packages
|
|
||||||
--hostname(-H) # Bug Tracking system
|
|
||||||
--port(-p) # Specify port for web interface
|
|
||||||
--release-critical(-R) # Use daily bug report
|
|
||||||
--index(-I) # Use the raw index.db
|
|
||||||
--indexdir(-X) # Specify index dir
|
|
||||||
--pin-priority(-P) # Specify Pin-Priority value
|
|
||||||
--title # Specify the title of rss
|
|
||||||
--force-download(-f) # Retrieve fresh bugs
|
|
||||||
--quiet(-q) # Do not display progress bar
|
|
||||||
--cache-dir(-c) # Specify local cache dir
|
|
||||||
--timer(-t) # Specify the expire cache timer
|
|
||||||
--aptconf(-C) # Specify apt config file
|
|
||||||
--force-yes(-y) # Assume yes to all questions
|
|
||||||
--force-no(-n) # Assume no to all questions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Set severity
|
|
||||||
extern "apt-listbugs critical grave" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--severity(-s) # Set severity
|
|
||||||
--tag(-T) # Tags you want to see
|
|
||||||
--stats(-S) # Bug-status you want to see
|
|
||||||
--showless(-l) # Ignore bugs in your system
|
|
||||||
--showgreater(-g) # Ignore newer bugs than upgrade packages
|
|
||||||
--show-downgrade(-D) # Bugs for downgrade packages
|
|
||||||
--hostname(-H) # Bug Tracking system
|
|
||||||
--port(-p) # Specify port for web interface
|
|
||||||
--release-critical(-R) # Use daily bug report
|
|
||||||
--index(-I) # Use the raw index.db
|
|
||||||
--indexdir(-X) # Specify index dir
|
|
||||||
--pin-priority(-P) # Specify Pin-Priority value
|
|
||||||
--title # Specify the title of rss
|
|
||||||
--force-download(-f) # Retrieve fresh bugs
|
|
||||||
--quiet(-q) # Do not display progress bar
|
|
||||||
--cache-dir(-c) # Specify local cache dir
|
|
||||||
--timer(-t) # Specify the expire cache timer
|
|
||||||
--aptconf(-C) # Specify apt config file
|
|
||||||
--force-yes(-y) # Assume yes to all questions
|
|
||||||
--force-no(-n) # Assume no to all questions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Bug-status you want to see
|
|
||||||
extern "apt-listbugs outstanding 'pending upload' resolved done open" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--severity(-s) # Set severity
|
|
||||||
--tag(-T) # Tags you want to see
|
|
||||||
--stats(-S) # Bug-status you want to see
|
|
||||||
--showless(-l) # Ignore bugs in your system
|
|
||||||
--showgreater(-g) # Ignore newer bugs than upgrade packages
|
|
||||||
--show-downgrade(-D) # Bugs for downgrade packages
|
|
||||||
--hostname(-H) # Bug Tracking system
|
|
||||||
--port(-p) # Specify port for web interface
|
|
||||||
--release-critical(-R) # Use daily bug report
|
|
||||||
--index(-I) # Use the raw index.db
|
|
||||||
--indexdir(-X) # Specify index dir
|
|
||||||
--pin-priority(-P) # Specify Pin-Priority value
|
|
||||||
--title # Specify the title of rss
|
|
||||||
--force-download(-f) # Retrieve fresh bugs
|
|
||||||
--quiet(-q) # Do not display progress bar
|
|
||||||
--cache-dir(-c) # Specify local cache dir
|
|
||||||
--timer(-t) # Specify the expire cache timer
|
|
||||||
--aptconf(-C) # Specify apt config file
|
|
||||||
--force-yes(-y) # Assume yes to all questions
|
|
||||||
--force-no(-n) # Assume no to all questions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Bug Tracking system
|
|
||||||
extern "apt-listbugs osdn.debian.or.jp" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--severity(-s) # Set severity
|
|
||||||
--tag(-T) # Tags you want to see
|
|
||||||
--stats(-S) # Bug-status you want to see
|
|
||||||
--showless(-l) # Ignore bugs in your system
|
|
||||||
--showgreater(-g) # Ignore newer bugs than upgrade packages
|
|
||||||
--show-downgrade(-D) # Bugs for downgrade packages
|
|
||||||
--hostname(-H) # Bug Tracking system
|
|
||||||
--port(-p) # Specify port for web interface
|
|
||||||
--release-critical(-R) # Use daily bug report
|
|
||||||
--index(-I) # Use the raw index.db
|
|
||||||
--indexdir(-X) # Specify index dir
|
|
||||||
--pin-priority(-P) # Specify Pin-Priority value
|
|
||||||
--title # Specify the title of rss
|
|
||||||
--force-download(-f) # Retrieve fresh bugs
|
|
||||||
--quiet(-q) # Do not display progress bar
|
|
||||||
--cache-dir(-c) # Specify local cache dir
|
|
||||||
--timer(-t) # Specify the expire cache timer
|
|
||||||
--aptconf(-C) # Specify apt config file
|
|
||||||
--force-yes(-y) # Assume yes to all questions
|
|
||||||
--force-no(-n) # Assume no to all questions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Specify local cache dir
|
|
||||||
extern "apt-listbugs /var/cache/apt-listbugs/" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--severity(-s) # Set severity
|
|
||||||
--tag(-T) # Tags you want to see
|
|
||||||
--stats(-S) # Bug-status you want to see
|
|
||||||
--showless(-l) # Ignore bugs in your system
|
|
||||||
--showgreater(-g) # Ignore newer bugs than upgrade packages
|
|
||||||
--show-downgrade(-D) # Bugs for downgrade packages
|
|
||||||
--hostname(-H) # Bug Tracking system
|
|
||||||
--port(-p) # Specify port for web interface
|
|
||||||
--release-critical(-R) # Use daily bug report
|
|
||||||
--index(-I) # Use the raw index.db
|
|
||||||
--indexdir(-X) # Specify index dir
|
|
||||||
--pin-priority(-P) # Specify Pin-Priority value
|
|
||||||
--title # Specify the title of rss
|
|
||||||
--force-download(-f) # Retrieve fresh bugs
|
|
||||||
--quiet(-q) # Do not display progress bar
|
|
||||||
--cache-dir(-c) # Specify local cache dir
|
|
||||||
--timer(-t) # Specify the expire cache timer
|
|
||||||
--aptconf(-C) # Specify apt config file
|
|
||||||
--force-yes(-y) # Assume yes to all questions
|
|
||||||
--force-no(-n) # Assume no to all questions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List bugs from packages
|
|
||||||
extern "apt-listbugs list" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--severity(-s) # Set severity
|
|
||||||
--tag(-T) # Tags you want to see
|
|
||||||
--stats(-S) # Bug-status you want to see
|
|
||||||
--showless(-l) # Ignore bugs in your system
|
|
||||||
--showgreater(-g) # Ignore newer bugs than upgrade packages
|
|
||||||
--show-downgrade(-D) # Bugs for downgrade packages
|
|
||||||
--hostname(-H) # Bug Tracking system
|
|
||||||
--port(-p) # Specify port for web interface
|
|
||||||
--release-critical(-R) # Use daily bug report
|
|
||||||
--index(-I) # Use the raw index.db
|
|
||||||
--indexdir(-X) # Specify index dir
|
|
||||||
--pin-priority(-P) # Specify Pin-Priority value
|
|
||||||
--title # Specify the title of rss
|
|
||||||
--force-download(-f) # Retrieve fresh bugs
|
|
||||||
--quiet(-q) # Do not display progress bar
|
|
||||||
--cache-dir(-c) # Specify local cache dir
|
|
||||||
--timer(-t) # Specify the expire cache timer
|
|
||||||
--aptconf(-C) # Specify apt config file
|
|
||||||
--force-yes(-y) # Assume yes to all questions
|
|
||||||
--force-no(-n) # Assume no to all questions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List bugs in rss format
|
|
||||||
extern "apt-listbugs rss" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--severity(-s) # Set severity
|
|
||||||
--tag(-T) # Tags you want to see
|
|
||||||
--stats(-S) # Bug-status you want to see
|
|
||||||
--showless(-l) # Ignore bugs in your system
|
|
||||||
--showgreater(-g) # Ignore newer bugs than upgrade packages
|
|
||||||
--show-downgrade(-D) # Bugs for downgrade packages
|
|
||||||
--hostname(-H) # Bug Tracking system
|
|
||||||
--port(-p) # Specify port for web interface
|
|
||||||
--release-critical(-R) # Use daily bug report
|
|
||||||
--index(-I) # Use the raw index.db
|
|
||||||
--indexdir(-X) # Specify index dir
|
|
||||||
--pin-priority(-P) # Specify Pin-Priority value
|
|
||||||
--title # Specify the title of rss
|
|
||||||
--force-download(-f) # Retrieve fresh bugs
|
|
||||||
--quiet(-q) # Do not display progress bar
|
|
||||||
--cache-dir(-c) # Specify local cache dir
|
|
||||||
--timer(-t) # Specify the expire cache timer
|
|
||||||
--aptconf(-C) # Specify apt config file
|
|
||||||
--force-yes(-y) # Assume yes to all questions
|
|
||||||
--force-no(-n) # Assume no to all questions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-listchanges" [
|
|
||||||
--help # Display help and exit
|
|
||||||
--apt # Read filenames from pipe
|
|
||||||
--verbose(-v) # Verbose mode
|
|
||||||
--frontend(-f) # Select frontend interface
|
|
||||||
--confirm(-c) # Ask confirmation
|
|
||||||
--all(-a) # Display all changelogs
|
|
||||||
--headers(-h) # Insert header
|
|
||||||
--debug # Display debug info
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Select frontend interface
|
|
||||||
extern "apt-listchanges pager browser xterm-pager xterm-browser text mail none" [
|
|
||||||
--help # Display help and exit
|
|
||||||
--apt # Read filenames from pipe
|
|
||||||
--verbose(-v) # Verbose mode
|
|
||||||
--frontend(-f) # Select frontend interface
|
|
||||||
--confirm(-c) # Ask confirmation
|
|
||||||
--all(-a) # Display all changelogs
|
|
||||||
--headers(-h) # Insert header
|
|
||||||
--debug # Display debug info
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-mark" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Mark a package as automatically installed
|
|
||||||
extern "apt-mark auto" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Mark a package as manually installed
|
|
||||||
extern "apt-mark manual" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Hold a package, prevent automatic installation or removal
|
|
||||||
extern "apt-mark hold" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Cancel a hold on a package
|
|
||||||
extern "apt-mark unhold" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show automatically installed packages
|
|
||||||
extern "apt-mark showauto" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show manually installed packages
|
|
||||||
extern "apt-mark showmanual" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show held packages
|
|
||||||
extern "apt-mark showhold" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
# Generate master file
|
|
||||||
extern "apt-move get" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Alias for 'get'
|
|
||||||
extern "apt-move getlocal" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Move packages to local tree
|
|
||||||
extern "apt-move move" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Delete obsolete package files
|
|
||||||
extern "apt-move delete" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Build new local files
|
|
||||||
extern "apt-move packages" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Rebuild index files
|
|
||||||
extern "apt-move fsck" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Move packages from cache to local mirror
|
|
||||||
extern "apt-move update" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Alias for 'move delete packages'
|
|
||||||
extern "apt-move local" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Alias for 'update'
|
|
||||||
extern "apt-move localupdate" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Download package missing from mirror
|
|
||||||
extern "apt-move mirror" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Sync packages installed
|
|
||||||
extern "apt-move sync" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# test $LOCALDIR/.exclude file
|
|
||||||
extern "apt-move exclude" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Move file specified on commandline
|
|
||||||
extern "apt-move movefile" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List packages that may serve as input to mirrorbin or mirrorsource
|
|
||||||
extern "apt-move listbin" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Fetch package from STDIN
|
|
||||||
extern "apt-move mirrorbin" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Fetch source package from STDIN
|
|
||||||
extern "apt-move mirrorsrc" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Process all packages
|
|
||||||
extern "apt-move" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-proxy-import" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--verbose(-v) # Verbose mode
|
|
||||||
--quiet(-q) # No message to STDOUT
|
|
||||||
--recursive(-r) # Recurse into subdir
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-rdepends" [
|
|
||||||
--help # Display help and exit
|
|
||||||
--build-depends(-b) # Show build dependencies
|
|
||||||
--dotty(-d) # Generate a dotty graph
|
|
||||||
--print-state(-p) # Show state of dependencies
|
|
||||||
--reverse(-r) # List packages depending on
|
|
||||||
--man # Display man page
|
|
||||||
--version # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Probe a CD
|
|
||||||
extern "apt-setup probe" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Run in non-interactive mode
|
|
||||||
extern "apt-setup" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
[# Display help and exit
|
|
||||||
extern "apt-show-source" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version-only # Display version and exit
|
|
||||||
--all(-a) # Print all source packages with version
|
|
||||||
--verbose(-v) # Verbose mode
|
|
||||||
...args
|
|
||||||
]]
|
|
||||||
|
|
||||||
[#
|
|
||||||
extern "" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]]
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-show-versions" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--regex(-r) # Using regex
|
|
||||||
--upgradeable(-u) # Print only upgradeable packages
|
|
||||||
--allversions(-a) # Print all versions
|
|
||||||
--brief(-b) # Print package name/distro
|
|
||||||
--verbose(-v) # Print verbose info
|
|
||||||
--initialize(-i) # Init or update cache only
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-sortpkgs" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--source(-s) # Use source index field
|
|
||||||
--version(-v) # Display version and exit
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-spy" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Debian distribution
|
|
||||||
extern "apt-spy stable testing unstable" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Servers in the areas
|
|
||||||
extern "apt-spy Africa Asia Europe North-America Oceania South-America" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Update mirror list
|
|
||||||
extern "apt-spy update" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,191 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-src" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Update list of source packages
|
|
||||||
extern "apt-src update" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Install source packages
|
|
||||||
extern "apt-src install" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Upgrade source packages
|
|
||||||
extern "apt-src upgrade" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove source packages
|
|
||||||
extern "apt-src remove" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Build source packages
|
|
||||||
extern "apt-src build" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Clean source packages
|
|
||||||
extern "apt-src clean" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Detect known source tree
|
|
||||||
extern "apt-src import" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List installed source package\(s\)
|
|
||||||
extern "apt-src list" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Root source tree
|
|
||||||
extern "apt-src location" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Version of source package
|
|
||||||
extern "apt-src version" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Name of the source package
|
|
||||||
extern "apt-src name" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--build(-b) # Build source packages
|
|
||||||
--installdebs(-i) # Install after build
|
|
||||||
--patch(-p) # Patch local changes
|
|
||||||
--here(-c) # Run on current dir
|
|
||||||
--upstream-version # Omit debian version
|
|
||||||
--keep-built(-k) # Do not del built files
|
|
||||||
--no-delete-source(-n) # Do not del source files
|
|
||||||
--version # Source tree version
|
|
||||||
--quiet(-q) # Output to /dev/null
|
|
||||||
--trace(-t) # Output trace
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-zip-inst" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--medium(-m) # Removable medium
|
|
||||||
--aptgetaction(-a) # Select an action
|
|
||||||
--packages(-p) # List of packages to install
|
|
||||||
--fix-broken(-f) # Fix broken option
|
|
||||||
--skip-mount # Specify a non-mountpoint dir
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Select an action
|
|
||||||
extern "apt-zip-inst dselect-upgrade upgrade dist-upgrade" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--medium(-m) # Removable medium
|
|
||||||
--aptgetaction(-a) # Select an action
|
|
||||||
--packages(-p) # List of packages to install
|
|
||||||
--fix-broken(-f) # Fix broken option
|
|
||||||
--skip-mount # Specify a non-mountpoint dir
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
# Display help and exit
|
|
||||||
extern "apt-zip-list" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--medium(-m) # Removable medium
|
|
||||||
--aptgetaction(-a) # Select an action
|
|
||||||
--packages(-p) # List of packages to install
|
|
||||||
--fix-broken(-f) # Fix broken option
|
|
||||||
--skip-mount # Specify a non-mountpoint dir
|
|
||||||
--method(-M) # Select a method
|
|
||||||
--options(-o) # Specify options
|
|
||||||
--accept(-A) # Accept protocols
|
|
||||||
--reject(-R) # Reject protocols
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Select an action
|
|
||||||
extern "apt-zip-list dselect-upgrade upgrade dist-upgrade" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--medium(-m) # Removable medium
|
|
||||||
--aptgetaction(-a) # Select an action
|
|
||||||
--packages(-p) # List of packages to install
|
|
||||||
--fix-broken(-f) # Fix broken option
|
|
||||||
--skip-mount # Specify a non-mountpoint dir
|
|
||||||
--method(-M) # Select a method
|
|
||||||
--options(-o) # Specify options
|
|
||||||
--accept(-A) # Accept protocols
|
|
||||||
--reject(-R) # Reject protocols
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Specify options
|
|
||||||
extern "apt-zip-list tar restart" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--medium(-m) # Removable medium
|
|
||||||
--aptgetaction(-a) # Select an action
|
|
||||||
--packages(-p) # List of packages to install
|
|
||||||
--fix-broken(-f) # Fix broken option
|
|
||||||
--skip-mount # Specify a non-mountpoint dir
|
|
||||||
--method(-M) # Select a method
|
|
||||||
--options(-o) # Specify options
|
|
||||||
--accept(-A) # Accept protocols
|
|
||||||
--reject(-R) # Reject protocols
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Accept protocols
|
|
||||||
extern "apt-zip-list http ftp" [
|
|
||||||
--help(-h) # Display help and exit
|
|
||||||
--version(-V) # Display version and exit
|
|
||||||
--medium(-m) # Removable medium
|
|
||||||
--aptgetaction(-a) # Select an action
|
|
||||||
--packages(-p) # List of packages to install
|
|
||||||
--fix-broken(-f) # Fix broken option
|
|
||||||
--skip-mount # Specify a non-mountpoint dir
|
|
||||||
--method(-M) # Select a method
|
|
||||||
--options(-o) # Specify options
|
|
||||||
--accept(-A) # Accept protocols
|
|
||||||
--reject(-R) # Reject protocols
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#
|
|
||||||
extern "apt" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
# Display a brief help message. Identical to the help action
|
|
||||||
extern "aptitude" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove any cached packages which can no longer be downloaded
|
|
||||||
extern "aptitude autoclean" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove all downloaded .deb files from the package cache directory
|
|
||||||
extern "aptitude clean" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Forget all internal information about what packages are new
|
|
||||||
extern "aptitude forget-new" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Cancel all scheduled actions on all packages
|
|
||||||
extern "aptitude keep-all" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Update the list of available packages from the apt sources
|
|
||||||
extern "aptitude update" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Upgrade installed packages to their most recent version
|
|
||||||
extern "aptitude safe-upgrade" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Download and displays the Debian changelog for the packages
|
|
||||||
extern "aptitude changelog" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Upgrade, removing or installing packages as necessary
|
|
||||||
extern "aptitude full-upgrade" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Download the packages to the current directory
|
|
||||||
extern "aptitude download" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Forbid the upgrade to a particular version
|
|
||||||
extern "aptitude forbid-version" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Ignore the packages by future upgrade commands
|
|
||||||
extern "aptitude hold" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Install the packages
|
|
||||||
extern "aptitude install" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Cancel any scheduled actions on the packages
|
|
||||||
extern "aptitude keep" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Mark packages as automatically installed
|
|
||||||
extern "aptitude markauto" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove and delete all associated configuration and data files
|
|
||||||
extern "aptitude purge" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Reinstall the packages
|
|
||||||
extern "aptitude reinstall" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Remove the packages
|
|
||||||
extern "aptitude remove" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Display detailed information about the packages
|
|
||||||
extern "aptitude show" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Consider the packages by future upgrade commands
|
|
||||||
extern "aptitude unhold" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Mark packages as manually installed
|
|
||||||
extern "aptitude unmarkauto" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Search for packages matching one of the patterns
|
|
||||||
extern "aptitude search" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Display brief summary of the available commands and options
|
|
||||||
extern "aptitude help" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,362 +0,0 @@
|
|||||||
# Debugging command
|
|
||||||
extern "arc" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Implements shell completion
|
|
||||||
extern "arc shell-complete" [
|
|
||||||
--current # Current term in the argument list being completed
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Reads an arc configuration option
|
|
||||||
extern "arc get-config" [
|
|
||||||
--verbose # Show detailed information about options
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Download a file to local disk
|
|
||||||
extern "arc download" [
|
|
||||||
--as # Save the file with a specific name rather than the default
|
|
||||||
--show # Write file to stdout instead of to disk
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# List your open Differential revisions
|
|
||||||
extern "arc list" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Run static analysis on changes to check for mistakes
|
|
||||||
extern "arc lint" [
|
|
||||||
--engine # Override configured lint engine for this project
|
|
||||||
--apply-patches # Apply patches suggested by lint to the working copy
|
|
||||||
--severity # Set minimum message severity
|
|
||||||
--never-apply-patches # Never apply patches suggested by lint
|
|
||||||
--rev # Lint changes since a specific revision
|
|
||||||
--outfile # Output the linter results to a file
|
|
||||||
--lintall # Show all lint warnings, not just those on changed lines
|
|
||||||
--amend-all # When linting git repositories, amend HEAD with all patches
|
|
||||||
--everything # Lint all files in the project
|
|
||||||
--output # Specify how results will be displayed
|
|
||||||
--only-new # Display only messages not present in the original code
|
|
||||||
--only-changed # Show lint warnings just on changed lines
|
|
||||||
--amend-autofixes # When linting git repositories, amend HEAD with autofix
|
|
||||||
--search # Search for linters
|
|
||||||
--verbose # Show detailed information, including options
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# In the first form, list objects youve flagged
|
|
||||||
extern "arc flag" [
|
|
||||||
--edit # Edit the flag on an object
|
|
||||||
--color # Set the color of a flag
|
|
||||||
--clear # Delete the flag on an object
|
|
||||||
--note # Set the note on a flag
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Export the local changeset to a file
|
|
||||||
extern "arc export" [
|
|
||||||
--unified # Export change as a unified patch
|
|
||||||
--git # Export change as a git patch
|
|
||||||
--encoding # Attempt to convert non UTF-8 patch into specified encoding
|
|
||||||
--arcbundle # Export change as an arc bundle
|
|
||||||
--diff # Export from Differential diff
|
|
||||||
--revision # Export from a Differential revision
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Open a file or object in your web browser
|
|
||||||
extern "arc browse" [
|
|
||||||
--force # Open arguments as paths, even if they do not exist in the working copy
|
|
||||||
--branch # Default branch name to view on server
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Quickly create a task for yourself
|
|
||||||
extern "arc todo" [
|
|
||||||
--cc # Other users to CC on the new task
|
|
||||||
--project # Projects to assign to the task
|
|
||||||
--browse # After creating the task, open it in a web browser
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# what they do and which versions are installed
|
|
||||||
extern "arc linters" [
|
|
||||||
--search # Search for linters
|
|
||||||
--verbose # Show detailed information, including options
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show what youre currently tracking in Phrequent
|
|
||||||
extern "arc time" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Stop tracking work in Phrequent
|
|
||||||
extern "arc stop" [
|
|
||||||
--note # A note to attach to the tracked time
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Create an alias
|
|
||||||
extern "arc alias" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Sets an arc configuration option
|
|
||||||
extern "arc set-config" [
|
|
||||||
--local # Set a local config value instead of a user one
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Start tracking work in Phrequent
|
|
||||||
extern "arc start" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Close a task or otherwise update its status
|
|
||||||
extern "arc close" [
|
|
||||||
--message # Provide a comment with your status change
|
|
||||||
--list-statuses # Show available status options and exit
|
|
||||||
--quiet # Do not print a success message
|
|
||||||
--finalize # Close only if the repository is untracked and the revision is accepted
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Publish an accepted revision after review
|
|
||||||
extern "arc land" [
|
|
||||||
--preview # Prints the commits that would be landed
|
|
||||||
--remote # Push to a remote other than the default
|
|
||||||
--delete-remote # Delete the feature branch in the remote after landing it
|
|
||||||
--update-with-rebase # When updating the feature branch, use rebase instead of merge
|
|
||||||
--squash # Use squash strategy
|
|
||||||
--keep-branch # Keep the feature branch
|
|
||||||
--merge # Use merge strategy
|
|
||||||
--update-with-merge # When updating the feature branch, use merge instead of rebase
|
|
||||||
--hold # Prepare the change to be pushed, but do not actually push it
|
|
||||||
--onto # Land feature branch onto a branch other than the default
|
|
||||||
--revision # Use the message from a specific revision
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show which commits will be selected
|
|
||||||
extern "arc which" [
|
|
||||||
--show-base # Print base commit only and exit
|
|
||||||
--base # Additional rules for determining base revision
|
|
||||||
--head # Specify the end of the commit range to select
|
|
||||||
--any-status # Show committed and abandoned revisions
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Alias for arc feature
|
|
||||||
extern "arc bookmark" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Amend the working copy
|
|
||||||
extern "arc amend" [
|
|
||||||
--revision # Use the message from a specific revision
|
|
||||||
--show # Show the amended commit message
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Upgrade arcanist and libphutil to the latest versions
|
|
||||||
extern "arc upgrade" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Shows the help
|
|
||||||
extern "arc help" [
|
|
||||||
--full # Print detailed information about each command
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Share and grab text using the Paste application
|
|
||||||
extern "arc paste" [
|
|
||||||
--lang # Language for syntax highlighting
|
|
||||||
--json # Output in JSON format
|
|
||||||
--title # Title for the paste
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Commit a revision which has been accepted by a reviewer
|
|
||||||
extern "arc commit" [
|
|
||||||
--revision # Commit a specific revision
|
|
||||||
--show # Show the command which would be issued
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Apply changes to the working copy
|
|
||||||
extern "arc patch" [
|
|
||||||
--force # Do not run any sanity checks
|
|
||||||
--encoding # Attempt to convert non UTF-8 patch into specified encoding
|
|
||||||
--nocommit # Do not commit the changes
|
|
||||||
--update # Update the local working copy before applying the patch
|
|
||||||
--patch # Apply changes from a git patch file or unified patch file
|
|
||||||
--arcbundle # Apply changes from an arc bundlej
|
|
||||||
--skip-dependencies # Do not apply dependencies
|
|
||||||
--diff # Apply changes from a Differential diff
|
|
||||||
--nobranch # Do not create a branch
|
|
||||||
--revision # Apply changes from a Differential revision
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Installs Conduit credentials into your ~/.arcc
|
|
||||||
extern "arc install-certificate" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Please use backout instead
|
|
||||||
extern "arc revert" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Upload a file from local disk
|
|
||||||
extern "arc upload" [
|
|
||||||
--json # Output upload information in JSON format
|
|
||||||
--temporary # Mark the file as temporary
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Alias for arc feature
|
|
||||||
extern "arc branch" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Theres only one way to find out
|
|
||||||
extern "arc anoid" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show blame for the lines you changed
|
|
||||||
extern "arc cover" [
|
|
||||||
--rev # Cover changes since a specific revision
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Close a revision
|
|
||||||
extern "arc close-revision" [
|
|
||||||
--quiet # Do not print a success message
|
|
||||||
--finalize # Close only if the repository is untracked and the revision is accepted
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# View all assigned tasks
|
|
||||||
extern "arc tasks" [
|
|
||||||
--status # Show tasks that are open or closed, default is open
|
|
||||||
--owner # Only show tasks assigned to the given username,
|
|
||||||
--unassigned # Only show tasks that are not assigned
|
|
||||||
--limit # Limit the amount of tasks outputted, default is all
|
|
||||||
--order # Arrange tasks based on priority, created, or modified,
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# A wrapper on git branch or hg bookmark
|
|
||||||
extern "arc feature" [
|
|
||||||
--output # Specify the output format
|
|
||||||
--view-all # Include closed and abandoned revisions
|
|
||||||
--by-status # Sort branches by status instead of time
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Run unit tests that cover specified paths
|
|
||||||
extern "arc unit" [
|
|
||||||
--engine # Override configured unit engine for this project
|
|
||||||
--detailed-coverage # Show a detailed coverage report on the CLI
|
|
||||||
--target # Record a copy of the test results on the specified build target
|
|
||||||
--ugly # Use uglier formatting
|
|
||||||
--rev # Run unit tests covering changes since a specific revision
|
|
||||||
--everything # Run every test
|
|
||||||
--json # Report results in JSON format
|
|
||||||
--coverage # Always enable coverage information
|
|
||||||
--output # Specify the output format
|
|
||||||
--no-coverage # Always disable coverage information
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Backouts on a previous commit
|
|
||||||
extern "arc backout" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Make a raw Conduit method call
|
|
||||||
extern "arc call-conduit" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Generate a Differential diff or revision from local changes
|
|
||||||
extern "arc diff" [
|
|
||||||
--raw-command # Generate diff by executing a specified command
|
|
||||||
--encoding # Attempt to convert non UTF-8 hunks into specified encoding
|
|
||||||
--cc # When creating a revision, add CCs
|
|
||||||
--reviewers # When creating a revision, add reviewers
|
|
||||||
--skip-staging # Do not copy changes to the staging area
|
|
||||||
--raw # Read diff from stdin
|
|
||||||
--uncommitted # Suppress warning about uncommitted changes
|
|
||||||
--message-file # Read revision information from file
|
|
||||||
--nolint # Do not run lint
|
|
||||||
--message # Use the specified message when updating a revision
|
|
||||||
--plan-changes # Create or update a revision without requesting a code review
|
|
||||||
--browse # After creating a diff or revision, open it in a web browser
|
|
||||||
--create # Always create a new revision
|
|
||||||
--cache # Disable lint cache
|
|
||||||
--use-commit-message # Read revision information from a specific commit
|
|
||||||
--only # Only generate a diff, without running lint, unit tests, or other
|
|
||||||
--skip-binaries # Do not upload binaries
|
|
||||||
--preview # only create a diff
|
|
||||||
--amend-autofixes # When linting git repositories, amend HEAD with autofix
|
|
||||||
--apply-patches # Apply patches suggested by lint
|
|
||||||
--head # Specify the end of the commit range
|
|
||||||
--verbatim # When creating a revision, try to use the working copy commit
|
|
||||||
--less-context # Create a diff with a few lines of context.
|
|
||||||
--advice # Require excuse for lint advice in addition to lint warnings and errors
|
|
||||||
--json # Emit machine-readable JSON
|
|
||||||
--update # Always update a specific revision
|
|
||||||
--ignore-unsound-tests # Ignore unsound test failures without prompting
|
|
||||||
--excuse # Provide a prepared in advance excuse for any lints/tests
|
|
||||||
--base # Additional rules for determining base revision
|
|
||||||
--no-amend # Never amend commits in the working copy with lint patches
|
|
||||||
--add-all # Automatically add all unstaged and uncommitted
|
|
||||||
--never-apply-patches # Never apply patches suggested by lint
|
|
||||||
--edit # Edit revision information
|
|
||||||
--nounit # Do not run unit tests
|
|
||||||
--lintall # Raise all lint warnings
|
|
||||||
--amend-all # When linting git repositories, amend HEAD with all patches
|
|
||||||
--no-diff # Only run lint and unit tests
|
|
||||||
--allow-untracked # Skip checks for untracked files in the working copy
|
|
||||||
--only-new # Display only new lint messages
|
|
||||||
--no-coverage # Always disable coverage information
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Create or update a libphutil library
|
|
||||||
extern "arc liberate" [
|
|
||||||
--remap # Run the remap step of liberation
|
|
||||||
--upgrade # Upgrade library to v2
|
|
||||||
--verify # Run the verify step of liberation
|
|
||||||
--all # Drop the module cache before liberating
|
|
||||||
--force-update # Force the library map to be updated
|
|
||||||
--library-name # Set the library name
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Shows the current version of arcanist
|
|
||||||
extern "arc version" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# List installed Java environments and enabled one
|
|
||||||
extern "archlinux-java status" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Force <JAVA_ENV> as default
|
|
||||||
extern "archlinux-java set" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Unset current default Java environment
|
|
||||||
extern "archlinux-java unset" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Return the short name of the Java environment set as default
|
|
||||||
extern "archlinux-java get" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Fix an invalid/broken default Java environment configuration
|
|
||||||
extern "archlinux-java fix" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
|
|
||||||
# Show help
|
|
||||||
extern "archlinux-java help" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
extern "arepack" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# Verbose mode
|
|
||||||
extern "arp" [
|
|
||||||
--verbose(-v) # Verbose mode
|
|
||||||
--numeric(-n) # Numerical address
|
|
||||||
--use-device(-D) # Use hardware address
|
|
||||||
--file(-f) # Take addr from filename, default /etc/ethers
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
[#
|
|
||||||
extern "" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]]
|
|
||||||
|
|
||||||
[# Base directory containing the document
|
|
||||||
extern "asciidoctor" [
|
|
||||||
--base-dir(-B) # Base directory containing the document
|
|
||||||
--safe # Set safe mode level to safe
|
|
||||||
--attribute(-a) # Define a document attribute
|
|
||||||
--destination-dir(-D) # Destination output directory
|
|
||||||
--template-engine(-E) # Template engine to use
|
|
||||||
--load-path(-I) # Add a directory to the load path
|
|
||||||
--section-numbers(-n) # Auto-number section titles
|
|
||||||
--out-file(-o) # Output file
|
|
||||||
--source-dir(-R) # Source directory
|
|
||||||
--require(-r) # Require the specified library
|
|
||||||
--no-header-footer(-s) # Output an embedded document
|
|
||||||
--template-dir(-T) # A directory containing custom converter templates
|
|
||||||
--quiet(-q) # Be quiet
|
|
||||||
--trace # Include backtrace information
|
|
||||||
--verbose(-v) # Be verbose
|
|
||||||
--warnings(-w) # Turn on script warnings
|
|
||||||
--timings(-t) # Print timings report
|
|
||||||
--version(-V) # Print program version
|
|
||||||
...args
|
|
||||||
]]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Display version and exit
|
|
||||||
extern "at" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Limiting load factor
|
|
||||||
extern "atd" [
|
|
||||||
|
|
||||||
...args
|
|
||||||
]
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user