module completions { # The box store multitool of embedded Linux export extern corebox [ --help(-h) # Print help --version(-V) # Print version ] def "nu-complete corebox base32 color" [] { [ "always" "ansi" "auto" "never" ] } # Base32 encode/decode data and print to standard output export extern "corebox base32" [ ...file: string --decode(-d) # Decode rather than encode --ignore-space(-i) # Ignore whitespace when decoding --wrap(-w): string # Wrap encoded lines after n characters --color(-c): string@"nu-complete corebox base32 color" --verbose(-v) # output a diagnostic for every file processed --quiet(-q) # Do not display header, even with multiple files --help(-h) # Print help --version(-V) # Print version ] def "nu-complete corebox base64 color" [] { [ "always" "ansi" "auto" "never" ] } # Base64 encode/decode data and print to standard output export extern "corebox base64" [ ...file: string --decode(-d) # Decode rather than encode --ignore-space(-i) # Ignore whitespace when decoding --wrap(-w): string # Wrap encoded lines after n characters --color(-c): string@"nu-complete corebox base64 color" --verbose(-v) # output a diagnostic for every file processed --quiet(-q) # Do not display header, even with multiple files --help(-h) # Print help --version(-V) # Print version ] # Print NAME with any leading directory components removed. export extern "corebox basename" [ NAME: string # the filename to process SUFFIX?: string # the suffix to be removed --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # Install shitbox into the filesystem export extern "corebox bootstrap" [ --prefix(-p): string # The directory path under which to install --usr(-u) # Use /usr --soft(-s) # Install soft links instead of hardlinks --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # Install everything export extern "corebox bootstrap all" [ --soft(-s) # Install soft links instead of hardlinks --all(-a) # Install completions for all supported shells --bash(-b) # Bash shell completions --fish(-f) # Fish shell completions --nu(-n) # Nushell completions --pwsh(-p) # PowerShell completions --zsh(-z) # Zshell completions --help(-h) # Print help --version(-V) # Print version ] # Install links for each applet export extern "corebox bootstrap links" [ --soft(-s) # Install soft links instead of hardlinks --help(-h) # Print help --version(-V) # Print version ] # Install Unix man pages export extern "corebox bootstrap manpages" [ --help(-h) # Print help --version(-V) # Print version ] # Install shell completions export extern "corebox bootstrap completions" [ --all(-a) # Install completions for all supported shells --bash(-b) # Bash shell completions --fish(-f) # Fish shell completions --nu(-n) # Nushell completions --pwsh(-p) # PowerShell completions --zsh(-z) # Zshell completions --help(-h) # Print help --version(-V) # Print version ] # Print this message or the help of the given subcommand(s) export extern "corebox bootstrap help" [ ] # Install everything export extern "corebox bootstrap help all" [ ] # Install links for each applet export extern "corebox bootstrap help links" [ ] # Install Unix man pages export extern "corebox bootstrap help manpages" [ ] # Install shell completions export extern "corebox bootstrap help completions" [ ] # Print this message or the help of the given subcommand(s) export extern "corebox bootstrap help help" [ ] # change group ownership export extern "corebox chgrp" [ group: string --changes(-c) # report only when a change is made --verbose(-v) # output a diagnostic for every file processed --recursive(-R) # operate on files and directories recursively -H # if a command line argument is a symbolic link to a directory, traverse it -L # traverse every symbolic link encountered in a directory -P # do not traverse any symbolic links (default) --same-filesystem(-s) # do not cross filesystem boundaries (requires recursive) ...file: string --help(-h) # Print help --version(-V) # Print version ] # change file mode bits export extern "corebox chmod" [ --verbose(-v) # output a diagnostic for every file processed --changes(-c) # report only when a change is made --silent(-f) # suppress most error messages --quiet # suppress most error messages --recursive(-R) # operate on files and directories recursively mode: string ...file: string --help(-h) # Print help --version(-V) # Print version ] # change file owner and group export extern "corebox chown" [ user: string --changes(-c) # report only when a change is made --verbose(-v) # output a diagnostic for every file processed --recursive(-R) # operate on files and directories recursively -H # if a command line argument is a symbolic link to a directory, traverse it -L # traverse every symbolic link encountered in a directory -P # do not traverse any symbolic links (default) --same-filesystem(-s) # do not cross filesystem boundaries (requires recursive) ...file: string --help(-h) # Print help --version(-V) # Print version ] # run command or interactive shell with special root directory export extern "corebox chroot" [ --directory(-d): string # change to this directory after performing the chroot instead of '/' newroot: string command?: string ...arg: string --help(-h) # Print help --version(-V) # Print version ] # cut out selected fields of each line of a file export extern "corebox cut" [ --bytes(-b): string # select only these bytes --characters(-c): string # select only these characters --fields(-f): string # select only these fields --delimiter(-d): string # use DELIM instead of TAB for field delimiter -n: string # ignored --only-delimited(-s) ...file: string --help(-h) # Print help --version(-V) # Print version ] # strip last component from file name export extern "corebox dirname" [ --zero(-z) # end each output line with NUL, not newline ...name: string --help(-h) # Print help --version(-V) # Print version ] # Display a line of text export extern "corebox echo" [ -n: string # Do not output a trailing newline ...STRING: string --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # Does nothing unsuccessfully export extern "corebox false" [ --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # factor numbers export extern "corebox factor" [ ...number: string # the numbers to factor --help(-h) # Print help --version(-V) # Print version ] # Wrap each input line to fit in specified width export extern "corebox fold" [ ...FILE: string # The input file to use --bytes(-b) # Count bytes rather than columns --spaces(-s) # Break at spaces --optimal(-o) # Optimal fit --width(-w): string # Use width columns --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # display current group names export extern "corebox groups" [ user?: string --help(-h) # Print help --version(-V) # Print version ] def "nu-complete corebox head color" [] { [ "always" "ansi" "auto" "never" ] } # Display first lines of a file export extern "corebox head" [ ...FILES: string # The input file to use --bytes(-c) # Count bytes instead of lines --quiet(-q) # Disable printing a header. Overrides -c --verbose(-v) # Each file is preceded by a header consisting of the string "==> XXX <==" where "XXX" is the name of the file. --lines(-n): string # Count n number of lines (or bytes if -c is specified). --color(-C): string@"nu-complete corebox head color" -1: string --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # print the numeric identifier for the current host export extern "corebox hostid" [ --help(-h) # Print help --version(-V) # Print version ] # Prints the name of the current host. The super-user can set the host name by supplying an argument. export extern "corebox hostname" [ NAME?: string # name to set --strip(-s) # Removes any domain information from the printed name. --help(-h) # Print help --version(-V) # Print version ] # call the link function to create a link to a file export extern "corebox link" [ file1: string file2: string --verbose(-v) # output a diagnostic for every file processed --help(-h) # Print help --version(-V) # Print version ] # make links between files export extern "corebox ln" [ --force(-f) # remove existing destination files --symbolic(-s) # make symbolic links instead of hard links --verbose(-v) # print name of each linked file -L # For each source_file operand that names a file of type symbolic link, create a (hard) link to the file referenced by the symbolic link. -P # For each source_file operand that names a file of type symbolic link, create a (hard) link to the symbolic link itself. ...file: string dest: string --help(-h) # Print help --version(-V) # Print version ] # print user's login name export extern "corebox logname" [ --help(-h) # Print help --version(-V) # Print version ] # make FIFO special files export extern "corebox mkfifo" [ --mode(-m): string # Set the file permission bits of the newly-created FIFO to the specified mode value. --verbose(-v) # output a diagnostic for every file processed ...file: string --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] def "nu-complete corebox mknod type" [] { [ "b" "c" "p" ] } # make block or character special files export extern "corebox mknod" [ --mode(-m): string # set file permission bits to MODE, not a=rw - umask --verbose(-v) # output a diagnostic for every file processed file: string type: string@"nu-complete corebox mknod type" major?: string minor?: string --help(-h) # Print help --version(-V) # Print version ] # create a unique temporary file export extern "corebox mktemp" [ --directory(-d) # create a directory instead of a file --tmpdir(-p): string # specify the directory to create temporary files in --template(-t): string # specify a prefix to append to the created files --dryrun(-u) # immediately remove created files and directories --help(-h) # Print help --version(-V) # Print version ] # Denies a user account login ability export extern "corebox nologin" [ --help(-h) # Print help --version(-V) # Print version ] # Print the number of processing units available export extern "corebox nproc" [ --all(-a) # Print the number of installed processors --help(-h) # Print help --version(-V) # Print version ] # print all or part of environment export extern "corebox printenv" [ --null(-0) # end each output line with NUL, not newline ...var: string --help(-h) # Print help --version(-V) # Print version ] # return working directory name export extern "corebox pwd" [ --logical(-L) # use PWD from environment, even if it contains symlinks --physical(-P) # avoid all symlinks --help(-h) # Print help --version(-V) # Print version ] # Print symbolic link target or canonical file name export extern "corebox readlink" [ ...path: string --canonicalize(-f) # Canonicalize path -c # Canonicalize path --no-newline(-n) # Do not print the terminating newline. --help(-h) # Print help --version(-V) # Print version ] # return resolved physical path export extern "corebox realpath" [ --quiet(-q) # ignore warnings ...path: string --help(-h) # Print help --version(-V) # Print version ] def "nu-complete corebox rev color" [] { [ "always" "ansi" "auto" "never" ] } # reverse lines characterwise export extern "corebox rev" [ --verbose(-v) # Each file is preceded by a header consisting of the string "==> XXX <==" where "XXX" is the name of the file. --color(-c): string@"nu-complete corebox rev color" ...file: string --help(-h) # Print help --version(-V) # Print version ] def "nu-complete corebox rm interactive" [] { [ "never" "once" "always" ] } # remove files or directories export extern "corebox rm" [ -i # prompt before every removal -I # prompt once before removing more than three files, or when removing recursively; less intrusive than -i, while still giving protection against most mistakes --interactive: string@"nu-complete corebox rm interactive" # when to prompt --force(-f) # ignore nonexistent files and arguments, never prompt --recursive(-R) # operate on files and directories recursively --verbose(-v) # output a diagnostic for every file processed ...file: string --help(-h) # Print help --version(-V) # Print version ] # remove directories export extern "corebox rmdir" [ --parents(-p) # remove DIRECTORY and it's ancestors ...dir: string --verbose(-v) # output a diagnostic for every file processed --help(-h) # Print help --version(-V) # Print version ] # Suspend execution for an interval of time export extern "corebox sleep" [ seconds: string # The number of seconds to sleep --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # force completion of pending disk writes (flush cache) export extern "corebox sync" [ --data(-d) # sync only file data, no unneeded metadata --file-system(-f) # sync the file systems that contain the files ...FILE: string # If one or more files are specified, sync only them, or their containing file systems. --help(-h) # Print help --version(-V) # Print version ] # Does nothing successfully export extern "corebox true" [ --help(-h) # Print help (see more with '--help') --version(-V) # Print version ] # call the unlink function to remove the specified file export extern "corebox unlink" [ --verbose(-v) # output a diagnostic for every file processed ...file: string --help(-h) # Print help --version(-V) # Print version ] # Print newline, word, and byte counts for each file export extern "corebox wc" [ ...INPUT: string # The input file to use --bytes(-c) # Print the byte counts --chars(-m) # Print the character counts --lines(-l) # Print the line counts --max-line-length(-L) # Print the maximum display width --words(-w) # Print the word counts --help(-h) # Print help --version(-V) # Print version ] # Write the full path of COMMAND(s) to standard output export extern "corebox which" [ ...COMMAND: string --help(-h) # Print help --version(-V) # Print version ] # print effective user name export extern "corebox whoami" [ --help(-h) # Print help --version(-V) # Print version ] # output a string repeatedly until killed export extern "corebox yes" [ msg?: string --help(-h) # Print help --version(-V) # Print version ] # Print this message or the help of the given subcommand(s) export extern "corebox help" [ ] # Base32 encode/decode data and print to standard output export extern "corebox help base32" [ ] # Base64 encode/decode data and print to standard output export extern "corebox help base64" [ ] # Print NAME with any leading directory components removed. export extern "corebox help basename" [ ] # Install shitbox into the filesystem export extern "corebox help bootstrap" [ ] # Install everything export extern "corebox help bootstrap all" [ ] # Install links for each applet export extern "corebox help bootstrap links" [ ] # Install Unix man pages export extern "corebox help bootstrap manpages" [ ] # Install shell completions export extern "corebox help bootstrap completions" [ ] # change group ownership export extern "corebox help chgrp" [ ] # change file mode bits export extern "corebox help chmod" [ ] # change file owner and group export extern "corebox help chown" [ ] # run command or interactive shell with special root directory export extern "corebox help chroot" [ ] # cut out selected fields of each line of a file export extern "corebox help cut" [ ] # strip last component from file name export extern "corebox help dirname" [ ] # Display a line of text export extern "corebox help echo" [ ] # Does nothing unsuccessfully export extern "corebox help false" [ ] # factor numbers export extern "corebox help factor" [ ] # Wrap each input line to fit in specified width export extern "corebox help fold" [ ] # display current group names export extern "corebox help groups" [ ] # Display first lines of a file export extern "corebox help head" [ ] # print the numeric identifier for the current host export extern "corebox help hostid" [ ] # Prints the name of the current host. The super-user can set the host name by supplying an argument. export extern "corebox help hostname" [ ] # call the link function to create a link to a file export extern "corebox help link" [ ] # make links between files export extern "corebox help ln" [ ] # print user's login name export extern "corebox help logname" [ ] # make FIFO special files export extern "corebox help mkfifo" [ ] # make block or character special files export extern "corebox help mknod" [ ] # create a unique temporary file export extern "corebox help mktemp" [ ] # Denies a user account login ability export extern "corebox help nologin" [ ] # Print the number of processing units available export extern "corebox help nproc" [ ] # print all or part of environment export extern "corebox help printenv" [ ] # return working directory name export extern "corebox help pwd" [ ] # Print symbolic link target or canonical file name export extern "corebox help readlink" [ ] # return resolved physical path export extern "corebox help realpath" [ ] # reverse lines characterwise export extern "corebox help rev" [ ] # remove files or directories export extern "corebox help rm" [ ] # remove directories export extern "corebox help rmdir" [ ] # Suspend execution for an interval of time export extern "corebox help sleep" [ ] # force completion of pending disk writes (flush cache) export extern "corebox help sync" [ ] # Does nothing successfully export extern "corebox help true" [ ] # call the unlink function to remove the specified file export extern "corebox help unlink" [ ] # Print newline, word, and byte counts for each file export extern "corebox help wc" [ ] # Write the full path of COMMAND(s) to standard output export extern "corebox help which" [ ] # print effective user name export extern "corebox help whoami" [ ] # output a string repeatedly until killed export extern "corebox help yes" [ ] # Print this message or the help of the given subcommand(s) export extern "corebox help help" [ ] } use completions *