mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 13:57:17 +08:00
Shorten description in completions (#7788)
* Fix long descriptions in completions * PR review modifications
This commit is contained in:
parent
daa3cc17c4
commit
9fe2b27bba
|
@ -7,13 +7,13 @@
|
|||
|
||||
complete -c badblocks -s b -d 'Block-size Specify the size of blocks in bytes'
|
||||
complete -c badblocks -s c -d 'Number of blocks is the number of blocks which are tested at a time'
|
||||
complete -c badblocks -s f -d 'Normally, badblocks will refuse to do a read/write or a nondestructive test on a device which is mounted, since either can cause the system to potentially crash and/or damage the filesystem even if it is mounted read-only'
|
||||
complete -c badblocks -s f -d 'Execute test even when device is mounted (dangerous!)'
|
||||
complete -c badblocks -s i -d 'Input_file Read a list of already existing known bad blocks'
|
||||
complete -c badblocks -s o -d 'Output_file Write the list of bad blocks to the specified file'
|
||||
complete -c badblocks -s p -d 'Repeat scanning the disk until there are no new blocks discovered in specified number of consecutive scans of the disk'
|
||||
complete -c badblocks -s p -d 'Repeat until no new blocks are found in provided number of scans'
|
||||
complete -c badblocks -s t -d 'Test_pattern Specify a test pattern to be read (and written) to disk blocks'
|
||||
complete -c badblocks -s n -d 'Use non-destructive read-write mode'
|
||||
complete -c badblocks -s s -d 'Show the progress of the scan by writing out the block numbers as they are checked'
|
||||
complete -c badblocks -s s -d 'Show scan progress'
|
||||
complete -c badblocks -s v -d 'Verbose mode'
|
||||
complete -c badblocks -s w -d 'Use write-mode test'
|
||||
complete -c badblocks -s X -d 'Internal flag only to be used by e2fsck(8) and mke2fs(8)'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
complete -c curl -n 'string match -qr "^@" -- (commandline -ct)' -k -xa "(printf '%s\n' -- @(__fish_complete_suffix (commandline -ct | string replace -r '^@' '') ''))"
|
||||
|
||||
# These based on the autogenerated completions.
|
||||
complete -c curl -l abstract-unix-socket -d '(HTTP) Connect through an abstract Unix domain socket, instead of using the n…'
|
||||
complete -c curl -l abstract-unix-socket -d '(HTTP) Connect through an abstract Unix domain socket'
|
||||
complete -c curl -l anyauth -d '(HTTP) Use most secure authentication method automatically'
|
||||
complete -c curl -s a -l append -d '(FTP SFTP) Upload: append to the target file'
|
||||
complete -c curl -l basic -d '(HTTP) Use HTTP Basic authentication'
|
||||
|
@ -65,12 +65,12 @@ complete -c curl -l ftp-ssl-control -d '(FTP) Require SSL/TLS for the FTP login,
|
|||
complete -c curl -s G -l get -d 'Use GET instead of POST'
|
||||
complete -c curl -s g -l globoff -d 'This option switches off the "URL globbing parser"'
|
||||
complete -c curl -l happy-eyeballs-timeout-ms -d 'Attempt to connect to both IPv4 and IPv6 in parallel'
|
||||
complete -c curl -l haproxy-protocol -d '(HTTP) Send a HAProxy PROXY protocol v1 header at the beginning of the connection'
|
||||
complete -c curl -l haproxy-protocol -d '(HTTP) Use HAProxy PROXY protocol'
|
||||
complete -c curl -s I -l head -d '(HTTP FTP FILE) Fetch the headers only'
|
||||
complete -c curl -s H -l header -d '(HTTP) Extra header to include in the request when sending HTTP to a server'
|
||||
complete -c curl -s h -l help -d 'Usage help'
|
||||
complete -c curl -l hostpubmd5 -d '(SFTP SCP) Pass a string containing 32 hexadecimal digits'
|
||||
complete -c curl -l 'http0.9' -d '(HTTP) Tells curl to be fine with HTTP version 0. 9 response. HTTP/0'
|
||||
complete -c curl -l 'http0.9' -d '(HTTP) Accept HTTP version 0.9 response'
|
||||
complete -c curl -s 0 -l 'http1.0' -d '(HTTP) Use HTTP version 1'
|
||||
complete -c curl -l 'http1.1' -d '(HTTP) Use HTTP version 1.1'
|
||||
complete -c curl -l http2-prior-knowledge -d '(HTTP) Use HTTP/2 immediately (without trying HTTP1)'
|
||||
|
@ -129,83 +129,83 @@ complete -c curl -l proto-redir -d 'Limit what protocols it may use on redirect'
|
|||
# TODO: args
|
||||
complete -c curl -l proto -d 'Limit what protocols it may use in the transfer'
|
||||
complete -c curl -l proxy-anyauth -d 'Like --anyauth but for the proxy'
|
||||
complete -c curl -l proxy-basic -d 'Tells curl to use HTTP Basic authentication when communicating with the given…'
|
||||
complete -c curl -l proxy-basic -d 'Use HTTP Basic authentication to communicate with proxy'
|
||||
complete -c curl -l proxy-cacert -d 'Same as --cacert but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-capath -d 'Same as --capath but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-cert-type -d 'Same as --cert-type but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-cert -d 'Same as -E, --cert but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-ciphers -d 'Same as --ciphers but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-crlfile -d 'Same as --crlfile but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-digest -d 'Tells curl to use HTTP Digest authentication when communicating with the give…'
|
||||
complete -c curl -l proxy-cert-type -d 'Same as --cert-type but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-cert -d 'Same as -E, --cert but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-ciphers -d 'Same as --ciphers but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-crlfile -d 'Same as --crlfile but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-digest -d 'Use HTTP Digest authentication to communicate with proxy'
|
||||
complete -c curl -l proxy-header -d '(HTTP) Extra header to include in the request when sending HTTP to a proxy'
|
||||
complete -c curl -l proxy-insecure -d 'Same as -k, --insecure but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-key-type -d 'Same as --key-type but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-insecure -d 'Same as -k, --insecure but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-key-type -d 'Same as --key-type but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-key -d 'Same as --key but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-negotiate -d 'Tells curl to use HTTP Negotiate (SPNEGO) authentication when communicating w…'
|
||||
complete -c curl -l proxy-ntlm -d 'Tells curl to use HTTP NTLM authentication when communicating with the given …'
|
||||
complete -c curl -l proxy-pass -d 'Same as --pass but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-pinnedpubkey -d '(TLS) Tells curl to use the specified public key file (or hashes) to verify t…'
|
||||
complete -c curl -l proxy-negotiate -d 'Use HTTP Negotiate authentication to communicate with proxy'
|
||||
complete -c curl -l proxy-ntlm -d 'Use HTTP NTLM authentication when to communicate with proxy'
|
||||
complete -c curl -l proxy-pass -d 'Same as --pass but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-pinnedpubkey -d '(TLS) Use specified public key file or hashes to verify proxy'
|
||||
complete -c curl -l proxy-service-name -d 'This option allows you to change the service name for proxy negotiation'
|
||||
complete -c curl -l proxy-ssl-allow-beast -d 'Same as --ssl-allow-beast but used in HTTPS proxy context. Added in 7. 52'
|
||||
complete -c curl -l proxy-tls13-ciphers -d '(TLS) Specifies which cipher suites to use in the connection to your HTTPS pr…'
|
||||
complete -c curl -l proxy-tlsauthtype -d 'Same as --tlsauthtype but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-tlspassword -d 'Same as --tlspassword but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-tlsuser -d 'Same as --tlsuser but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-tlsv1 -d 'Same as -1, --tlsv1 but used in HTTPS proxy context. Added in 7. 52. 0'
|
||||
complete -c curl -l proxy-ssl-allow-beast -d 'Same as --ssl-allow-beast but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-tls13-ciphers -d '(TLS) Specify cipher suites for TLS 1.3 proxy connection'
|
||||
complete -c curl -l proxy-tlsauthtype -d 'Same as --tlsauthtype but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-tlspassword -d 'Same as --tlspassword but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-tlsuser -d 'Same as --tlsuser but used in HTTPS proxy context'
|
||||
complete -c curl -l proxy-tlsv1 -d 'Same as -1, --tlsv1 but used in HTTPS proxy context'
|
||||
complete -c curl -s U -l proxy-user -d 'Specify the user name and password to use for proxy authentication'
|
||||
complete -c curl -s x -l proxy -d 'Use the specified proxy'
|
||||
complete -c curl -l 'proxy1.0' -d 'Use the specified HTTP 1.0 proxy'
|
||||
complete -c curl -s p -l proxytunnel -d 'When an HTTP proxy is used -x, --proxy, this option will cause non-HTTP proto…'
|
||||
complete -c curl -s p -l proxytunnel -d 'If HTTP proxy is used, make curl tunnel through it'
|
||||
complete -c curl -l pubkey -d '(SFTP SCP) Public key file name'
|
||||
complete -c curl -s Q -l quote -d '(FTP SFTP) Send an arbitrary command to the remote FTP or SFTP server'
|
||||
complete -c curl -l random-file -d 'Specify the path name to file containing what will be considered as random da…'
|
||||
complete -c curl -s r -l range -d '(HTTP FTP SFTP FILE) Retrieve a byte range (i. e'
|
||||
complete -c curl -l random-file -d 'Specify file containing random data'
|
||||
complete -c curl -s r -l range -d '(HTTP FTP SFTP FILE) Retrieve a byte range'
|
||||
complete -c curl -o 500 -d 'specifies the last 500 bytes'
|
||||
complete -c curl -s 1 -d 'specifies the first and last byte only(*)(HTTP)'
|
||||
complete -c curl -l raw -d '(HTTP) When used, it disables all internal HTTP decoding of content or transf…'
|
||||
complete -c curl -l raw -d '(HTTP) Pass raw data (no HTTP decoding or transfer encoding)'
|
||||
complete -c curl -s e -l referer -d '(HTTP) Sends the "Referrer Page" information to the HTTP server'
|
||||
complete -c curl -s J -l remote-header-name -d '(HTTP) This option tells the -O, --remote-name option to use the server-speci…'
|
||||
complete -c curl -l remote-name-all -d 'This option changes the default action for all given URLs to be dealt with as…'
|
||||
complete -c curl -s J -l remote-header-name -d '(HTTP) Save output to filename from Content-Disposition'
|
||||
complete -c curl -l remote-name-all -d 'For every URL write output to local file by default'
|
||||
complete -c curl -s O -l remote-name -d 'Write output to a local file named like the remote file we get'
|
||||
complete -c curl -s R -l remote-time -d 'When used, this will make curl attempt to figure out the timestamp of the rem…'
|
||||
complete -c curl -l request-target -d '(HTTP) Tells curl to use an alternative "target" (path) instead of using the …'
|
||||
complete -c curl -s X -l request -d '(HTTP) Specifies a custom request method to use when communicating with the H…'
|
||||
complete -c curl -s R -l remote-time -d 'Use timestamp of remote file on output'
|
||||
complete -c curl -l request-target -d '(HTTP) Use an alternative request target'
|
||||
complete -c curl -s X -l request -d '(HTTP) Specifies a custom HTTP method'
|
||||
complete -c curl -l resolve -d 'Provide a custom address for a specific host and port pair'
|
||||
complete -c curl -l retry-connrefused -d 'In addition to the other conditions, consider ECONNREFUSED as a transient err…'
|
||||
complete -c curl -l retry-delay -d 'Make curl sleep this amount of time before each retry when a transfer has fai…'
|
||||
complete -c curl -l retry-connrefused -d 'Consider ECONNREFUSED a transient error'
|
||||
complete -c curl -l retry-delay -d 'Time to wait between transfer retries'
|
||||
complete -c curl -l retry-max-time -d 'The retry timer is reset before the first transfer attempt'
|
||||
complete -c curl -l retry -d 'If a transient error is returned when curl tries to perform a transfer, it wi…'
|
||||
complete -c curl -l sasl-ir -d 'Enable initial response in SASL authentication. Added in 7. 31. 0'
|
||||
complete -c curl -l retry -d 'Number of retries when transient error occurs'
|
||||
complete -c curl -l sasl-ir -d 'Enable initial response in SASL authentication'
|
||||
complete -c curl -l service-name -d 'This option allows you to change the service name for SPNEGO'
|
||||
complete -c curl -s S -l show-error -d 'When used with -s, --silent, it makes curl show an error message if it fails'
|
||||
complete -c curl -s s -l silent -d 'Silent or quiet mode. Don\'t show progress meter or error messages'
|
||||
complete -c curl -l socks4 -d 'Use the specified SOCKS4 proxy'
|
||||
complete -c curl -l socks4a -d 'Use the specified SOCKS4a proxy'
|
||||
complete -c curl -l socks5-basic -d 'Tells curl to use username/password authentication when connecting to a SOCKS…'
|
||||
complete -c curl -l socks5-basic -d 'Use username/password authentication to connect to SOCKS5 proxy'
|
||||
complete -c curl -l socks5-gssapi-nec -d 'As part of the GSS-API negotiation a protection mode is negotiated'
|
||||
complete -c curl -l socks5-gssapi-service -d 'The default service name for a socks server is rcmd/server-fqdn'
|
||||
complete -c curl -l socks5-gssapi -d 'Tells curl to use GSS-API authentication when connecting to a SOCKS5 proxy'
|
||||
complete -c curl -l socks5-hostname -d 'Use the specified SOCKS5 proxy (and let the proxy resolve the host name)'
|
||||
complete -c curl -l socks5 -d 'Use the specified SOCKS5 proxy - but resolve the host name locally'
|
||||
complete -c curl -s Y -l speed-limit -d 'If a download is slower than this given speed (in bytes per second) for speed…'
|
||||
complete -c curl -s y -l speed-time -d 'If a download is slower than speed-limit bytes per second during a speed-time…'
|
||||
complete -c curl -l ssl-allow-beast -d 'This option tells curl to not work around a security flaw in the SSL3 and TLS…'
|
||||
complete -c curl -s Y -l speed-limit -d 'Abort download if it\'s slower than given speed (Bps) for speed-time'
|
||||
complete -c curl -s y -l speed-time -d 'Abort download if it\'s slower than speed for given speed-time (s)'
|
||||
complete -c curl -l ssl-allow-beast -d 'Don\'t work around BEAST security flaw in SSL3 and TLS1.0'
|
||||
complete -c curl -l ssl-no-revoke -d '(Schannel) This option tells curl to disable certificate revocation checks'
|
||||
complete -c curl -l ssl-reqd -d '(FTP IMAP POP3 SMTP) Require SSL/TLS for the connection'
|
||||
complete -c curl -l ssl -d '(FTP IMAP POP3 SMTP) Try to use SSL/TLS for the connection'
|
||||
complete -c curl -s 2 -l sslv2 -d '(SSL) Forces curl to use SSL version 2 when negotiating with a remote SSL ser…'
|
||||
complete -c curl -s 3 -l sslv3 -d '(SSL) Forces curl to use SSL version 3 when negotiating with a remote SSL ser…'
|
||||
complete -c curl -s 2 -l sslv2 -d '(SSL) Use SSL version 2'
|
||||
complete -c curl -s 3 -l sslv3 -d '(SSL) Use SSL version 3'
|
||||
complete -c curl -l stderr -d 'Redirect all writes to stderr to the specified file instead'
|
||||
complete -c curl -l styled-output -d 'Enables the automatic use of bold font styles when writing HTTP headers to th…'
|
||||
complete -c curl -l suppress-connect-headers -d 'When -p, --proxytunnel is used and a CONNECT request is made don\'t output pro…'
|
||||
complete -c curl -l tcp-fastopen -d 'Enable use of TCP Fast Open (RFC7413). Added in 7. 49. 0'
|
||||
complete -c curl -l styled-output -d 'Use bold font styles when writing HTTP headers to terminal'
|
||||
complete -c curl -l suppress-connect-headers -d 'Don\'t print response headers for CONNECT request if -p is set'
|
||||
complete -c curl -l tcp-fastopen -d 'Enable use of TCP Fast Open'
|
||||
complete -c curl -l tcp-nodelay -d 'Turn on the TCP_NODELAY option'
|
||||
complete -c curl -s t -l telnet-option -d 'Pass options to the telnet protocol'
|
||||
complete -c curl -l tftp-blksize -d '(TFTP) Set TFTP BLKSIZE option (must be >512)'
|
||||
complete -c curl -l tftp-no-options -d '(TFTP) Tells curl not to send TFTP options requests'
|
||||
complete -c curl -s z -l time-cond -d '(HTTP FTP) Request a file that has been modified later than the given time an…'
|
||||
complete -c curl -s z -l time-cond -d '(HTTP FTP) Request file modified before or later than given time'
|
||||
complete -c curl -l tls-max -d '(SSL) VERSION defines maximum supported TLS version'
|
||||
complete -c curl -l tls13-ciphers -d '(TLS) Specifies which cipher suites to use in the connection if it negotiates…'
|
||||
complete -c curl -l tls13-ciphers -d '(TLS) Specifies cipher suites to use for TLS 1.3'
|
||||
complete -c curl -l tlsauthtype -d 'Set TLS authentication type'
|
||||
complete -c curl -l tlspassword -d 'Set password for use with the TLS authentication method'
|
||||
complete -c curl -l tlsuser -d 'Set username for use with the TLS authentication method'
|
||||
|
@ -214,7 +214,7 @@ complete -c curl -l 'tlsv1.1' -d '(TLS) Forces curl to use TLS version 1.1'
|
|||
complete -c curl -l 'tlsv1.2' -d '(TLS) Forces curl to use TLS version 1.2'
|
||||
complete -c curl -l 'tlsv1.3' -d '(TLS) Forces curl to use TLS version 1.3'
|
||||
complete -c curl -l tlsv1 -d '(SSL) Tells curl to use at least TLS version 1'
|
||||
complete -c curl -l tr-encoding -d '(HTTP) Request a compressed Transfer-Encoding response using one of the algor…'
|
||||
complete -c curl -l tr-encoding -d '(HTTP) Request compressed Transfer-Encoding, uncompress on receive'
|
||||
complete -c curl -l trace-ascii -d 'Enables a full trace dump of all incoming and outgoing data'
|
||||
complete -c curl -l trace-time -d 'Prepends a time stamp to each trace or verbose line that curl displays'
|
||||
complete -c curl -l trace -d 'Enables a full trace dump of all incoming and outgoing data'
|
||||
|
|
|
@ -5,12 +5,12 @@ complete -c read -s P -l prompt-str -d "Set prompt using provided string" -x
|
|||
complete -c read -s x -l export -d "Export variable to subprocess"
|
||||
complete -c read -s g -l global -d "Make variable scope global"
|
||||
complete -c read -s l -l local -d "Make variable scope local"
|
||||
complete -c read -s U -l universal -d "Make variable scope universal, i.e. share variable with all the users fish processes on this computer"
|
||||
complete -c read -s U -l universal -d "Share variable with all the users fish processes on the computer"
|
||||
complete -c read -s u -l unexport -d "Do not export variable to subprocess"
|
||||
complete -c read -s m -l mode-name -d "Name to load/save history under" -r -a "read fish"
|
||||
complete -c read -s c -l command -d "Initial contents of read buffer when reading interactively" -r
|
||||
complete -c read -s S -l shell -d "Use syntax highlighting, tab completions and command termination suitable for entering shellscript code"
|
||||
complete -c read -s s -l silent -d "Secure mode: mask characters at the command line (suitable for passwords)"
|
||||
complete -c read -s S -l shell -d "Read like the shell would"
|
||||
complete -c read -s s -l silent -d "Mask input with ●"
|
||||
complete -c read -s n -l nchars -d "Read the specified number of characters" -x
|
||||
complete -c read -s a -l list -l array -d "Store the results as an array"
|
||||
complete -c read -s R -l right-prompt -d "Set right-hand prompt command" -x
|
||||
|
|
|
@ -10,13 +10,13 @@ complete -c useradd -s d -l home -d 'Home directory for the new user' -x -a '(__
|
|||
complete -c useradd -s G -l groups -d 'Supplementary groups' -xa '(__fish_append , (string split -f1 : /etc/group))'
|
||||
complete -c useradd -s h -l help -d 'Display help message and exit'
|
||||
complete -c useradd -s m -l create-home -d 'The user\'s home directory will be created if it does not exist'
|
||||
complete -c useradd -s n -d 'A group having the same name as the user being added to the system will be created by default (when -g is not specified)'
|
||||
complete -c useradd -s n -d 'Create group with name of added user if -g is not specified'
|
||||
complete -c useradd -s K -l key -d 'Overrides default key/value pairs from /etc/login'
|
||||
complete -c useradd -s o -l non-unique -d 'Allow the creation of a user account with a duplicate (non-unique) UID'
|
||||
complete -c useradd -s o -l non-unique -d 'Allow user account with a duplicate UID'
|
||||
complete -c useradd -s p -l password -d 'The encrypted password, as returned by crypt(3)' -r
|
||||
complete -c useradd -s u -l uid -d 'The numerical value of the user\'s ID' -r
|
||||
complete -c useradd -s b -l base-dir -d 'The initial path prefix for a new user\'s home directory' -r -a '(__fish_complete_directories)'
|
||||
complete -c useradd -s e -l expiredate -d 'The date on which the user account is disabled' -r
|
||||
complete -c useradd -s f -l inactive -d 'The number of days after a password has expired before the account will be disabled' -r
|
||||
complete -c useradd -s f -l inactive -d 'Number of days to disable account after password expiration' -r
|
||||
complete -c useradd -s g -l gid -d 'The group name or ID for a new user\'s initial group' -x -a '(string match -r "^[^#].*" < /etc/group | string split -f1,3 ":" | string join ":" | string replace -a ":" \n)'
|
||||
complete -c useradd -s s -l shell -d 'Name of the new user\'s login shell' -x -a '(string match -r "^[^#].*" < /etc/shells)'
|
||||
|
|
Loading…
Reference in New Issue
Block a user