Socket
Socket
Sign inDemoInstall

@withfig/autocomplete

Package Overview
Dependencies
27
Maintainers
7
Versions
1070
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.651.0 to 2.651.1

6

build/mosh.js

@@ -1,3 +0,3 @@

var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,u=(t,n,o)=>t.startsWith("/")||t.startsWith("~/")||t==="~"?t.replace("~",o):n+(n.endsWith("/")?"":"/")+t,c=async(t,n,o,a)=>{let e=u(t,a,o),{stdout:i}=await n({command:"cat",args:[e]}),r=i.split(`
`).map(s=>s.trim()),p=r.filter(s=>s.toLowerCase().startsWith("include ")).map(s=>s.split(" ")[1]),l=await Promise.all(p.map(s=>c(s,n,o,a)));return[...r,...l.flat()]},m={custom:async(t,n,o)=>{let{stdout:a}=await n({command:"cat",args:[`${o.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(e=>{let i=h.exec(e);if(i)return String(i)}).filter((e,i,r)=>e&&r.indexOf(e)===i).map(e=>({name:(t[1].endsWith("@")?t[1]:"")+e,description:"SSH host"}))},trigger:"@"},d={custom:async(t,n,o)=>(await c("config",n,o.environmentVariables.HOME,"~/.ssh")).filter(e=>e.trim().toLowerCase().startsWith("host ")&&!e.includes("*")).map(e=>({name:e.split(" ")[1],description:"SSH host",priority:90}))};var g={name:"mosh",description:"",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:[m,d,{template:"history"}]},options:[{name:["--help","-h"],description:"Show help for mosh"},{name:"--client",description:'Mosh client on local machine (default: "mosh-client")'},{name:"--server",description:'Mosh server on remote machine (default: "mosh-server")'},{name:"--predict",description:"Local echo options",requiresEquals:!0,args:{suggestions:[{name:"adaptive",description:"Local echo for slower links [default]"},{name:"always",description:"Use local echo even on fast links"},{name:"never",description:"Never use local echo"},{name:"experimental",description:"Aggressively echo even when incorrect"}]}},{name:"-4",description:"Use IPv4 only"},{name:"-6",description:"Use IPv6 only"},{name:"--family",description:"Network Type",requiresEquals:!0,args:{suggestions:[{name:"inet",description:"Use IPv4 only"},{name:"ine6",description:"Use IPv6 only"},{name:"auto",description:"Autodetect network type for single-family hosts only"},{name:"all",description:"Try all network types"},{name:"prefer-inet4",description:"Use all network types, but try IPv4 first [default]"},{name:"prefer-inet6",description:"Use all network types, but try IPv6 first"}]}},{name:["--port","-p"],description:"Server-side UDP port or range, (No effect on server-side SSH port)"},{name:"--bind-server",description:'{ssh|any|IP}, ask the server to reply from an IP address, (default: "ssh")'},{name:"--ssh",requiresSeparator:!0,args:{name:"command",isCommand:!0},description:'Ssh command to run when setting up session, (example: "ssh -p 2222")'},{name:"--no-ssh-pty",description:"Do not allocate a pseudo tty on ssh connection"},{name:"--no-init",description:"Do not send terminal initialization string"},{name:"--local",description:"Run mosh-server locally without using ssh"},{name:"--experimental-remote-ip",description:"Select the method for discovering the remote IP address to use for mosh",requiresSeparator:!0,args:{name:"method",suggestions:["local","remote","proxy"],default:"proxy"}},{name:"--version",description:"Version and copyright information"}]},v=g;export{v as default};
var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,u=(n,e,o)=>n.startsWith("/")||n.startsWith("~/")||n==="~"?n.replace("~",o):e.startsWith("/")||e.startsWith("~/")||e==="~"?e.replace("~",o)+(e.replace("~",o).endsWith("/")?"":"/")+n:e+(e.endsWith("/")?"":"/")+n,c=async(n,e,o,a)=>{let t=u(n,a,o),{stdout:i}=await e({command:"cat",args:[t]}),r=i.split(`
`).map(s=>s.trim()),p=r.filter(s=>s.toLowerCase().startsWith("include ")).map(s=>s.split(" ")[1]),l=await Promise.all(p.map(s=>c(s,e,o,a)));return[...r,...l.flat()]},m={custom:async(n,e,o)=>{let{stdout:a}=await e({command:"cat",args:[`${o.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(t=>{let i=h.exec(t);if(i)return String(i)}).filter((t,i,r)=>t&&r.indexOf(t)===i).map(t=>({name:(n[1].endsWith("@")?n[1]:"")+t,description:"SSH host"}))},trigger:"@"},d={custom:async(n,e,o)=>(await c("config",e,o.environmentVariables.HOME,"~/.ssh")).filter(t=>t.trim().toLowerCase().startsWith("host ")&&!t.includes("*")).map(t=>({name:t.split(" ")[1],description:"SSH host",priority:90}))};var g={name:"mosh",description:"",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:[m,d,{template:"history"}]},options:[{name:["--help","-h"],description:"Show help for mosh"},{name:"--client",description:'Mosh client on local machine (default: "mosh-client")'},{name:"--server",description:'Mosh server on remote machine (default: "mosh-server")'},{name:"--predict",description:"Local echo options",requiresEquals:!0,args:{suggestions:[{name:"adaptive",description:"Local echo for slower links [default]"},{name:"always",description:"Use local echo even on fast links"},{name:"never",description:"Never use local echo"},{name:"experimental",description:"Aggressively echo even when incorrect"}]}},{name:"-4",description:"Use IPv4 only"},{name:"-6",description:"Use IPv6 only"},{name:"--family",description:"Network Type",requiresEquals:!0,args:{suggestions:[{name:"inet",description:"Use IPv4 only"},{name:"ine6",description:"Use IPv6 only"},{name:"auto",description:"Autodetect network type for single-family hosts only"},{name:"all",description:"Try all network types"},{name:"prefer-inet4",description:"Use all network types, but try IPv4 first [default]"},{name:"prefer-inet6",description:"Use all network types, but try IPv6 first"}]}},{name:["--port","-p"],description:"Server-side UDP port or range, (No effect on server-side SSH port)"},{name:"--bind-server",description:'{ssh|any|IP}, ask the server to reply from an IP address, (default: "ssh")'},{name:"--ssh",requiresSeparator:!0,args:{name:"command",isCommand:!0},description:'Ssh command to run when setting up session, (example: "ssh -p 2222")'},{name:"--no-ssh-pty",description:"Do not allocate a pseudo tty on ssh connection"},{name:"--no-init",description:"Do not send terminal initialization string"},{name:"--local",description:"Run mosh-server locally without using ssh"},{name:"--experimental-remote-ip",description:"Select the method for discovering the remote IP address to use for mosh",requiresSeparator:!0,args:{name:"method",suggestions:["local","remote","proxy"],default:"proxy"}},{name:"--version",description:"Version and copyright information"}]},v=g;export{v as default};

@@ -1,3 +0,3 @@

var u=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,f=(e,n,t)=>e.startsWith("/")||e.startsWith("~/")||e==="~"?e.replace("~",t):n+(n.endsWith("/")?"":"/")+e,c=async(e,n,t,a)=>{let i=f(e,a,t),{stdout:s}=await n({command:"cat",args:[i]}),o=s.split(`
`).map(r=>r.trim()),p=o.filter(r=>r.toLowerCase().startsWith("include ")).map(r=>r.split(" ")[1]),l=await Promise.all(p.map(r=>c(r,n,t,a)));return[...o,...l.flat()]},m={custom:async(e,n,t)=>{let{stdout:a}=await n({command:"cat",args:[`${t.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(i=>{let s=u.exec(i);if(s)return String(s)}).filter((i,s,o)=>i&&o.indexOf(i)===s).map(i=>({name:(e[1].endsWith("@")?e[1]:"")+i,description:"SSH host"}))},trigger:"@"},d={custom:async(e,n,t)=>(await c("config",n,t.environmentVariables.HOME,"~/.ssh")).filter(i=>i.trim().toLowerCase().startsWith("host ")&&!i.includes("*")).map(i=>({name:i.split(" ")[1],description:"SSH host",priority:90}))};var g=[{name:"BACKUP",description:"Mention files backed up"},{name:"COPY",description:"Mention files copied locally on the receiving side"},{name:"DEL",description:"Mention deletions on the receiving side"},{name:"FLIST",description:"Mention file-list receiving/sending (levels 1-2)"},{name:"MISC",description:"Mention miscellaneous information (levels 1-2)"},{name:"MOUNT",description:"Mention mounts that were found or skipped"},{name:"NAME",description:"Mention 1) updated file/dir names, 2) unchanged names"},{name:"PROGRESS",description:"Mention 1) per-file progress or 2) total transfer progress"},{name:"REMOVE",description:"Mention files removed on the sending side"},{name:"SKIP",description:"Mention files that are skipped due to options used"},{name:"STATS",description:"Mention statistics at end of run (levels 1-3)"},{name:"SYMSAFE",description:"Mention symlinks that are unsafe"},{name:"ALL",description:"Set all --info options (e.g. all4)"},{name:"NONE",description:"Silence all --info options (same as all0)"},{name:"HELP",description:"Output this help message"}],h=[{name:"BACKUP",description:"Mention files backed up"},{name:"COPY",description:"Mention files copied locally on the receiving side"},{name:"DEL",description:"Mention deletions on the receiving side"},{name:"FLIST",description:"Mention file-list receiving/sending (levels 1-2)"},{name:"MISC",description:"Mention miscellaneous information (levels 1-2)"},{name:"MOUNT",description:"Mention mounts that were found or skipped"},{name:"NAME",description:"Mention 1) updated file/dir names, 2) unchanged names"},{name:"PROGRESS",description:"Mention 1) per-file progress or 2) total transfer progress"},{name:"REMOVE",description:"Mention files removed on the sending side"},{name:"SKIP",description:"Mention files that are skipped due to options used"},{name:"STATS",description:"Mention statistics at end of run (levels 1-3)"},{name:"SYMSAFE",description:"Mention symlinks that are unsafe"},{name:"ALL",description:"Set all --info options (e.g. all4)"},{name:"NONE",description:"Silence all --info options (same as all0)"},{name:"HELP",description:"Output this help message"}],S={name:"rsync",description:"Rsync is a file transfer program capable of efficient remote update via a fast differencing algorithm",args:[{name:"SRC",isVariadic:!0,generators:[m,d,{template:["history","filepaths","folders"]}]},{name:"DEST",generators:[m,d,{template:["history","filepaths","folders"]}]}],options:[{name:["-v","--verbose"],description:"Increase verbosity"},{name:"--info",description:"Fine-grained informational verbosity",requiresSeparator:!0,args:g},{name:"--debug",description:"Fine-grained debug verbosity",requiresSeparator:!0,args:h},{name:"--msgs2stderr",description:"Special output handling for debugging"},{name:["--quiet","-q"],description:"Suppress non-error messages"},{name:"--no-motd",description:"Suppress daemon-mode MOTD (see manpage caveat)"},{name:["--checksum","-c"],description:"Skip based on checksum, not mod-time & size"},{name:["-a","--archive"],description:"Archive mode; equals -rlptgoD (no -H,-A,-X)",exclusiveOn:["-H","-A","-X"]},{name:"--no-OPTION",description:"Turn off an implied OPTION (e.g. --no-D)"},{name:["-r","--recursive"],description:"Recurse into directories"},{name:["-R","--relative"],description:"Use relative path names"},{name:"--no-implied-dirs",description:"Don't send implied dirs with --relative",dependsOn:["--relative"]},{name:["-b","--backup"],description:"Make backups (see --suffix & --backup-dir)"},{name:"--backup-dir",description:"Make backups into hierarchy based in DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:"--suffix",description:"Set backup suffix (default ~ w/o --backup-dir)",requiresSeparator:!0,args:{name:"SUFFIX"}},{name:["-u","--update"],description:"Skip files that are newer on the receiver"},{name:"--inplace",description:"Update destination files in-place (SEE MAN PAGE)"},{name:"--append",description:"Append data onto shorter files"},{name:"--append-verify",description:"Like --append, but with old data in file checksum"},{name:["-d","--dirs"],description:"Transfer directories without recursing",args:{name:"DIR",template:"folders"}},{name:["-l","--links"],description:"Copy symlinks as symlinks"},{name:["-L","--copy-links"],description:"Transform symlink into referent file/dir"},{name:"--copy-unsafe-links",description:'Only "unsafe" symlinks are transformed'},{name:"--safe-links",description:"Ignore symlinks that point outside the source tree"},{name:"--munge-links",description:"Munge symlinks to make them safer (but unusable)"},{name:["-k","--copy-dirlinks"],description:"Transform symlink to a dir into referent dir"},{name:["-K","--keep-dirlinks"],description:"Treat symlinked dir on receiver as dir"},{name:["-H","--hard-links"],description:"Preserve hard links"},{name:["-p","--perms"],description:"Preserve permissions"},{name:["-E","--executability"],description:"Preserve the file's executability"},{name:"--chmod",description:"Affect file and/or directory permissions",requiresSeparator:!0,args:{name:"CHMOD"}},{name:["-A","--acls"],description:"Preserve ACLs (implies --perms)",dependsOn:["--perms"]},{name:["-X","--xattrs"],description:"Preserve extended attributes"},{name:["-o","--owner"],description:"Preserve owner (super-user only)"},{name:["-g","--group"],description:"Preserve group"},{name:"--devices",description:"Preserve device files (super-user only)"},{name:"--copy-devices",description:"Copy device contents as regular file"},{name:"--specials",description:"Preserve special files"},{name:"-D",description:"Same as --devices --specials"},{name:["-t","--times"],description:"Preserve modification times"},{name:["-O","--omit-dir-times"],description:"Omit directories from --times",dependsOn:["--times"],args:{name:"DIR",template:"folders",isVariadic:!0}},{name:["-J","--omit-link-times"],description:"Omit symlinks from --times",dependsOn:["--times"]},{name:"--super",description:"Receiver attempts super-user activities"},{name:"--fake-super",description:"Store/recover privileged attrs using xattrs"},{name:["-S","--sparse"],description:"Turn sequences of nulls into sparse blocks"},{name:"--preallocate",description:"Allocate dest files before writing them"},{name:["-n","--dry-run"],description:"Perform a trial run with no changes made"},{name:["-W","--whole-file"],description:"Copy files whole (without delta-xfer algorithm)"},{name:"--checksum-choice",description:"Choose the checksum algorithms",requiresSeparator:!0,args:{name:"ALGORITHM",suggestions:["auto","md4","md5","none"]}},{name:["-x","--one-file-system"],description:"Don't cross filesystem boundaries"},{name:["-B","--block-size"],description:"Force a fixed checksum block-size",requiresSeparator:!0,args:{name:"SIZE"}},{name:["-e","--rsh"],description:"Specify the remote shell to use",requiresSeparator:!0,args:{name:"COMMAND"}},{name:"--rsync-path",description:"Specify the rsync to run on the remote machine",requiresSeparator:!0,args:{name:"PATH"}},{name:"--existing",description:"Skip creating new files on receiver"},{name:"--ignore-existing",description:"Skip updating files that already exist on receiver"},{name:"--remove-source-files",description:"Sender removes synchronized files (non-dirs)"},{name:"--delete",description:"Delete extraneous files from destination dirs"},{name:"--delete-before",description:"Receiver deletes before transfer, not during"},{name:["--delete-during","--del"],description:"Receiver deletes during the transfer"},{name:"--delete-delay",description:"Find deletions during, delete after"},{name:"--delete-after",description:"Receiver deletes after transfer, not during"},{name:"--delete-excluded",description:"Also delete excluded files from destination dirs"},{name:"--ignore-missing-args",description:"Ignore missing source args without error"},{name:"--delete-missing-args",description:"Delete missing source args from destination"},{name:"--ignore-errors",description:"Delete even if there are I/O errors"},{name:"--force",description:"Force deletion of directories even if not empty"},{name:"--max-delete",description:"Don't delete more than NUM files",requiresSeparator:!0,args:{name:"NUM"}},{name:"--max-size",description:"Don't transfer any file larger than SIZE",requiresSeparator:!0,args:{name:"SIZE"}},{name:"--min-size",description:"Don't transfer any file smaller than SIZE",requiresSeparator:!0,args:{name:"SIZE"}},{name:"--partial",description:"Keep partially transferred files"},{name:"--partial-dir=DIR",description:"Put a partially transferred file into DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:"--delay-updates",description:"Put all updated files into place at transfer's end"},{name:["-m","--prune-empty-dirs"],description:"Prune empty directory chains from the file-list"},{name:"--numeric-ids",description:"Don't map uid/gid values by user/group name"},{name:"--usermap",description:"Custom username mapping",requiresSeparator:!0,args:{name:"STRING"}},{name:"--groupmap",description:"Custom groupname mapping",requiresSeparator:!0,args:{name:"STRING"}},{name:"--chown=USER:GROUP",description:"Simple username/groupname mapping",requiresSeparator:!0,args:{name:"USER:GROUP"}},{name:"--timeout",description:"Set I/O timeout in seconds",requiresSeparator:!0,args:{name:"SECONDS"}},{name:"--contimeout",description:"Set daemon connection timeout in seconds",requiresSeparator:!0,args:{name:"SECONDS"}},{name:["-I","--ignore-times"],description:"Don't skip files that match in size and mod-time"},{name:"-M",description:"Send OPTION to the remote side only",args:{name:"OPTION"}},{name:"--remote-option",description:"Send OPTION to the remote side only",requiresSeparator:!0,args:{name:"OPTION"}},{name:"--size-only",description:"Skip files that match in size"},{name:"-@",description:"Set the accuracy for mod-time comparisons",args:{name:"NUM"}},{name:"--modify-window",description:"Set the accuracy for mod-time comparisons",requiresSeparator:!0,args:{name:"NUM"}},{name:"-T",description:"Create temporary files in directory DIR",args:{name:"DIR",template:"folders"}},{name:"--temp-dir",description:"Create temporary files in directory DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:["-y","--fuzzy"],description:"Find similar file for basis if no dest file"},{name:"--compare-dest",description:"Also compare destination files relative to DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:"--copy-dest",description:"Also compare destination files relative to DIR and include copies of unchanged files",args:{name:"DIR",template:"folders"}},{name:"--link-dest",description:"Hardlink to files in DIR when unchanged",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:["-z","--compress"],description:"Compress file data during the transfer"},{name:"--compress-level",description:"Explicitly set compression level",requiresSeparator:!0,args:{name:"NUM",suggestions:Array.from(Array(10).keys()).map(e=>e.toString())}},{name:"--skip-compress",description:"Skip compressing files with a suffix in LIST",requiresSeparator:!0,args:{name:"LIST"}},{name:["-C","--cvs-exclude"],description:"Auto-ignore files the same way CVS does"},{name:"-f",description:"Add a file-filtering RULE",args:{name:"RULE"}},{name:"--filter",description:"Add a file-filtering RULE",requiresSeparator:!0,args:{name:"RULE"}},{name:"-F",description:"Same as --filter='dir-merge /.rsync-filter'",args:{name:"DIR",template:"folders",isVariadic:!0}},{name:"--exclude",description:"Exclude files matching PATTERN",requiresSeparator:!0,args:{name:"PATTERN"}},{name:"--exclude-from",description:"Read exclude patterns from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--include",description:"Don't exclude files matching PATTERN",requiresSeparator:!0,args:{name:"PATTERN"}},{name:"--include-from",description:"Read include patterns from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--files-from",description:"Read list of source-file names from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:["-0","--from0"],description:"All *-from/filter files are delimited by 0s"},{name:["-s","--protect-args"],description:"No space-splitting; only wildcard special-chars"},{name:"--address",description:"Bind address for outgoing socket to daemon",requiresSeparator:!0,args:{name:"ADDRESS"}},{name:"--port",description:"Specify double-colon alternate port number",requiresSeparator:!0,args:{name:"PORT"}},{name:"--sockopts",description:"Specify custom TCP options",requiresSeparator:!0,args:{name:"OPTIONS"}},{name:"--blocking-io",description:"Use blocking I/O for the remote shell"},{name:"--stats",description:"Give some file-transfer stats"},{name:["-8","--8-bit-output"],description:"Leave high-bit chars unescaped in output"},{name:["-h","--human-readable"],description:"Output numbers in a human-readable format"},{name:"--progress",description:"Show progress during transfer"},{name:"-P",description:"Same as --partial --progress"},{name:["-i","--itemize-changes"],description:"Output a change-summary for all updates"},{name:"--out-format",description:"Output updates using the specified FORMAT",requiresSeparator:!0,args:{name:"FORMAT"}},{name:"--log-file",description:"Log what we're doing to the specified FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--log-file-format",description:"Log updates using the specified FMT",requiresSeparator:!0,args:{name:"FMT"}},{name:"--password-file",description:"Read daemon-access password from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--list-only",description:"List the files instead of copying them"},{name:"--bwlimit",description:"Limit socket I/O bandwidth",requiresSeparator:!0,args:{name:"RATE"}},{name:"--stop-at",description:"Stop rsync at year-month-dayThour:minute",requiresSeparator:!0,args:{name:"y-m-dTh:m"}},{name:"--time-limit",description:"Stop rsync after MINS minutes have elapsed",requiresSeparator:!0,args:{name:"MINS"}},{name:"--outbuf",description:"Set output buffering to None, Line, or Block",requiresSeparator:!0,args:{name:"BUFFER",suggestions:["N","L","B"]}},{name:"--write-batch",description:"Write a batched update to FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--only-write-batch",description:"Like --write-batch but w/o updating destination",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--read-batch",description:"Read a batched update from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--protocol",description:"Force an older protocol version to be used",requiresSeparator:!0,args:{name:"NUM"}},{name:"--iconv",description:"Request charset conversion of filenames",requiresSeparator:!0,args:{name:"CONVERT_SPEC"}},{name:"--checksum-seed",description:"Set block/file checksum seed (advanced)",requiresSeparator:!0,args:{name:"NUM"}},{name:"--noatime",description:"Do not alter atime when opening source files"},{name:["-4","--ipv4"],description:"Prefer IPv4"},{name:["-6","--ipv6"],description:"Prefer IPv6"},{name:"--version",description:"Print version number"},{name:["-h","--help"],description:"Show help for rsync (-h is --help only if used alone)"}]},b=S;export{b as default};
var u=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,f=(e,i,t)=>e.startsWith("/")||e.startsWith("~/")||e==="~"?e.replace("~",t):i.startsWith("/")||i.startsWith("~/")||i==="~"?i.replace("~",t)+(i.replace("~",t).endsWith("/")?"":"/")+e:i+(i.endsWith("/")?"":"/")+e,c=async(e,i,t,a)=>{let n=f(e,a,t),{stdout:s}=await i({command:"cat",args:[n]}),o=s.split(`
`).map(r=>r.trim()),p=o.filter(r=>r.toLowerCase().startsWith("include ")).map(r=>r.split(" ")[1]),l=await Promise.all(p.map(r=>c(r,i,t,a)));return[...o,...l.flat()]},m={custom:async(e,i,t)=>{let{stdout:a}=await i({command:"cat",args:[`${t.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(n=>{let s=u.exec(n);if(s)return String(s)}).filter((n,s,o)=>n&&o.indexOf(n)===s).map(n=>({name:(e[1].endsWith("@")?e[1]:"")+n,description:"SSH host"}))},trigger:"@"},d={custom:async(e,i,t)=>(await c("config",i,t.environmentVariables.HOME,"~/.ssh")).filter(n=>n.trim().toLowerCase().startsWith("host ")&&!n.includes("*")).map(n=>({name:n.split(" ")[1],description:"SSH host",priority:90}))};var g=[{name:"BACKUP",description:"Mention files backed up"},{name:"COPY",description:"Mention files copied locally on the receiving side"},{name:"DEL",description:"Mention deletions on the receiving side"},{name:"FLIST",description:"Mention file-list receiving/sending (levels 1-2)"},{name:"MISC",description:"Mention miscellaneous information (levels 1-2)"},{name:"MOUNT",description:"Mention mounts that were found or skipped"},{name:"NAME",description:"Mention 1) updated file/dir names, 2) unchanged names"},{name:"PROGRESS",description:"Mention 1) per-file progress or 2) total transfer progress"},{name:"REMOVE",description:"Mention files removed on the sending side"},{name:"SKIP",description:"Mention files that are skipped due to options used"},{name:"STATS",description:"Mention statistics at end of run (levels 1-3)"},{name:"SYMSAFE",description:"Mention symlinks that are unsafe"},{name:"ALL",description:"Set all --info options (e.g. all4)"},{name:"NONE",description:"Silence all --info options (same as all0)"},{name:"HELP",description:"Output this help message"}],h=[{name:"BACKUP",description:"Mention files backed up"},{name:"COPY",description:"Mention files copied locally on the receiving side"},{name:"DEL",description:"Mention deletions on the receiving side"},{name:"FLIST",description:"Mention file-list receiving/sending (levels 1-2)"},{name:"MISC",description:"Mention miscellaneous information (levels 1-2)"},{name:"MOUNT",description:"Mention mounts that were found or skipped"},{name:"NAME",description:"Mention 1) updated file/dir names, 2) unchanged names"},{name:"PROGRESS",description:"Mention 1) per-file progress or 2) total transfer progress"},{name:"REMOVE",description:"Mention files removed on the sending side"},{name:"SKIP",description:"Mention files that are skipped due to options used"},{name:"STATS",description:"Mention statistics at end of run (levels 1-3)"},{name:"SYMSAFE",description:"Mention symlinks that are unsafe"},{name:"ALL",description:"Set all --info options (e.g. all4)"},{name:"NONE",description:"Silence all --info options (same as all0)"},{name:"HELP",description:"Output this help message"}],S={name:"rsync",description:"Rsync is a file transfer program capable of efficient remote update via a fast differencing algorithm",args:[{name:"SRC",isVariadic:!0,generators:[m,d,{template:["history","filepaths","folders"]}]},{name:"DEST",generators:[m,d,{template:["history","filepaths","folders"]}]}],options:[{name:["-v","--verbose"],description:"Increase verbosity"},{name:"--info",description:"Fine-grained informational verbosity",requiresSeparator:!0,args:g},{name:"--debug",description:"Fine-grained debug verbosity",requiresSeparator:!0,args:h},{name:"--msgs2stderr",description:"Special output handling for debugging"},{name:["--quiet","-q"],description:"Suppress non-error messages"},{name:"--no-motd",description:"Suppress daemon-mode MOTD (see manpage caveat)"},{name:["--checksum","-c"],description:"Skip based on checksum, not mod-time & size"},{name:["-a","--archive"],description:"Archive mode; equals -rlptgoD (no -H,-A,-X)",exclusiveOn:["-H","-A","-X"]},{name:"--no-OPTION",description:"Turn off an implied OPTION (e.g. --no-D)"},{name:["-r","--recursive"],description:"Recurse into directories"},{name:["-R","--relative"],description:"Use relative path names"},{name:"--no-implied-dirs",description:"Don't send implied dirs with --relative",dependsOn:["--relative"]},{name:["-b","--backup"],description:"Make backups (see --suffix & --backup-dir)"},{name:"--backup-dir",description:"Make backups into hierarchy based in DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:"--suffix",description:"Set backup suffix (default ~ w/o --backup-dir)",requiresSeparator:!0,args:{name:"SUFFIX"}},{name:["-u","--update"],description:"Skip files that are newer on the receiver"},{name:"--inplace",description:"Update destination files in-place (SEE MAN PAGE)"},{name:"--append",description:"Append data onto shorter files"},{name:"--append-verify",description:"Like --append, but with old data in file checksum"},{name:["-d","--dirs"],description:"Transfer directories without recursing",args:{name:"DIR",template:"folders"}},{name:["-l","--links"],description:"Copy symlinks as symlinks"},{name:["-L","--copy-links"],description:"Transform symlink into referent file/dir"},{name:"--copy-unsafe-links",description:'Only "unsafe" symlinks are transformed'},{name:"--safe-links",description:"Ignore symlinks that point outside the source tree"},{name:"--munge-links",description:"Munge symlinks to make them safer (but unusable)"},{name:["-k","--copy-dirlinks"],description:"Transform symlink to a dir into referent dir"},{name:["-K","--keep-dirlinks"],description:"Treat symlinked dir on receiver as dir"},{name:["-H","--hard-links"],description:"Preserve hard links"},{name:["-p","--perms"],description:"Preserve permissions"},{name:["-E","--executability"],description:"Preserve the file's executability"},{name:"--chmod",description:"Affect file and/or directory permissions",requiresSeparator:!0,args:{name:"CHMOD"}},{name:["-A","--acls"],description:"Preserve ACLs (implies --perms)",dependsOn:["--perms"]},{name:["-X","--xattrs"],description:"Preserve extended attributes"},{name:["-o","--owner"],description:"Preserve owner (super-user only)"},{name:["-g","--group"],description:"Preserve group"},{name:"--devices",description:"Preserve device files (super-user only)"},{name:"--copy-devices",description:"Copy device contents as regular file"},{name:"--specials",description:"Preserve special files"},{name:"-D",description:"Same as --devices --specials"},{name:["-t","--times"],description:"Preserve modification times"},{name:["-O","--omit-dir-times"],description:"Omit directories from --times",dependsOn:["--times"],args:{name:"DIR",template:"folders",isVariadic:!0}},{name:["-J","--omit-link-times"],description:"Omit symlinks from --times",dependsOn:["--times"]},{name:"--super",description:"Receiver attempts super-user activities"},{name:"--fake-super",description:"Store/recover privileged attrs using xattrs"},{name:["-S","--sparse"],description:"Turn sequences of nulls into sparse blocks"},{name:"--preallocate",description:"Allocate dest files before writing them"},{name:["-n","--dry-run"],description:"Perform a trial run with no changes made"},{name:["-W","--whole-file"],description:"Copy files whole (without delta-xfer algorithm)"},{name:"--checksum-choice",description:"Choose the checksum algorithms",requiresSeparator:!0,args:{name:"ALGORITHM",suggestions:["auto","md4","md5","none"]}},{name:["-x","--one-file-system"],description:"Don't cross filesystem boundaries"},{name:["-B","--block-size"],description:"Force a fixed checksum block-size",requiresSeparator:!0,args:{name:"SIZE"}},{name:["-e","--rsh"],description:"Specify the remote shell to use",requiresSeparator:!0,args:{name:"COMMAND"}},{name:"--rsync-path",description:"Specify the rsync to run on the remote machine",requiresSeparator:!0,args:{name:"PATH"}},{name:"--existing",description:"Skip creating new files on receiver"},{name:"--ignore-existing",description:"Skip updating files that already exist on receiver"},{name:"--remove-source-files",description:"Sender removes synchronized files (non-dirs)"},{name:"--delete",description:"Delete extraneous files from destination dirs"},{name:"--delete-before",description:"Receiver deletes before transfer, not during"},{name:["--delete-during","--del"],description:"Receiver deletes during the transfer"},{name:"--delete-delay",description:"Find deletions during, delete after"},{name:"--delete-after",description:"Receiver deletes after transfer, not during"},{name:"--delete-excluded",description:"Also delete excluded files from destination dirs"},{name:"--ignore-missing-args",description:"Ignore missing source args without error"},{name:"--delete-missing-args",description:"Delete missing source args from destination"},{name:"--ignore-errors",description:"Delete even if there are I/O errors"},{name:"--force",description:"Force deletion of directories even if not empty"},{name:"--max-delete",description:"Don't delete more than NUM files",requiresSeparator:!0,args:{name:"NUM"}},{name:"--max-size",description:"Don't transfer any file larger than SIZE",requiresSeparator:!0,args:{name:"SIZE"}},{name:"--min-size",description:"Don't transfer any file smaller than SIZE",requiresSeparator:!0,args:{name:"SIZE"}},{name:"--partial",description:"Keep partially transferred files"},{name:"--partial-dir=DIR",description:"Put a partially transferred file into DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:"--delay-updates",description:"Put all updated files into place at transfer's end"},{name:["-m","--prune-empty-dirs"],description:"Prune empty directory chains from the file-list"},{name:"--numeric-ids",description:"Don't map uid/gid values by user/group name"},{name:"--usermap",description:"Custom username mapping",requiresSeparator:!0,args:{name:"STRING"}},{name:"--groupmap",description:"Custom groupname mapping",requiresSeparator:!0,args:{name:"STRING"}},{name:"--chown=USER:GROUP",description:"Simple username/groupname mapping",requiresSeparator:!0,args:{name:"USER:GROUP"}},{name:"--timeout",description:"Set I/O timeout in seconds",requiresSeparator:!0,args:{name:"SECONDS"}},{name:"--contimeout",description:"Set daemon connection timeout in seconds",requiresSeparator:!0,args:{name:"SECONDS"}},{name:["-I","--ignore-times"],description:"Don't skip files that match in size and mod-time"},{name:"-M",description:"Send OPTION to the remote side only",args:{name:"OPTION"}},{name:"--remote-option",description:"Send OPTION to the remote side only",requiresSeparator:!0,args:{name:"OPTION"}},{name:"--size-only",description:"Skip files that match in size"},{name:"-@",description:"Set the accuracy for mod-time comparisons",args:{name:"NUM"}},{name:"--modify-window",description:"Set the accuracy for mod-time comparisons",requiresSeparator:!0,args:{name:"NUM"}},{name:"-T",description:"Create temporary files in directory DIR",args:{name:"DIR",template:"folders"}},{name:"--temp-dir",description:"Create temporary files in directory DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:["-y","--fuzzy"],description:"Find similar file for basis if no dest file"},{name:"--compare-dest",description:"Also compare destination files relative to DIR",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:"--copy-dest",description:"Also compare destination files relative to DIR and include copies of unchanged files",args:{name:"DIR",template:"folders"}},{name:"--link-dest",description:"Hardlink to files in DIR when unchanged",requiresSeparator:!0,args:{name:"DIR",template:"folders"}},{name:["-z","--compress"],description:"Compress file data during the transfer"},{name:"--compress-level",description:"Explicitly set compression level",requiresSeparator:!0,args:{name:"NUM",suggestions:Array.from(Array(10).keys()).map(e=>e.toString())}},{name:"--skip-compress",description:"Skip compressing files with a suffix in LIST",requiresSeparator:!0,args:{name:"LIST"}},{name:["-C","--cvs-exclude"],description:"Auto-ignore files the same way CVS does"},{name:"-f",description:"Add a file-filtering RULE",args:{name:"RULE"}},{name:"--filter",description:"Add a file-filtering RULE",requiresSeparator:!0,args:{name:"RULE"}},{name:"-F",description:"Same as --filter='dir-merge /.rsync-filter'",args:{name:"DIR",template:"folders",isVariadic:!0}},{name:"--exclude",description:"Exclude files matching PATTERN",requiresSeparator:!0,args:{name:"PATTERN"}},{name:"--exclude-from",description:"Read exclude patterns from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--include",description:"Don't exclude files matching PATTERN",requiresSeparator:!0,args:{name:"PATTERN"}},{name:"--include-from",description:"Read include patterns from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--files-from",description:"Read list of source-file names from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:["-0","--from0"],description:"All *-from/filter files are delimited by 0s"},{name:["-s","--protect-args"],description:"No space-splitting; only wildcard special-chars"},{name:"--address",description:"Bind address for outgoing socket to daemon",requiresSeparator:!0,args:{name:"ADDRESS"}},{name:"--port",description:"Specify double-colon alternate port number",requiresSeparator:!0,args:{name:"PORT"}},{name:"--sockopts",description:"Specify custom TCP options",requiresSeparator:!0,args:{name:"OPTIONS"}},{name:"--blocking-io",description:"Use blocking I/O for the remote shell"},{name:"--stats",description:"Give some file-transfer stats"},{name:["-8","--8-bit-output"],description:"Leave high-bit chars unescaped in output"},{name:["-h","--human-readable"],description:"Output numbers in a human-readable format"},{name:"--progress",description:"Show progress during transfer"},{name:"-P",description:"Same as --partial --progress"},{name:["-i","--itemize-changes"],description:"Output a change-summary for all updates"},{name:"--out-format",description:"Output updates using the specified FORMAT",requiresSeparator:!0,args:{name:"FORMAT"}},{name:"--log-file",description:"Log what we're doing to the specified FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--log-file-format",description:"Log updates using the specified FMT",requiresSeparator:!0,args:{name:"FMT"}},{name:"--password-file",description:"Read daemon-access password from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--list-only",description:"List the files instead of copying them"},{name:"--bwlimit",description:"Limit socket I/O bandwidth",requiresSeparator:!0,args:{name:"RATE"}},{name:"--stop-at",description:"Stop rsync at year-month-dayThour:minute",requiresSeparator:!0,args:{name:"y-m-dTh:m"}},{name:"--time-limit",description:"Stop rsync after MINS minutes have elapsed",requiresSeparator:!0,args:{name:"MINS"}},{name:"--outbuf",description:"Set output buffering to None, Line, or Block",requiresSeparator:!0,args:{name:"BUFFER",suggestions:["N","L","B"]}},{name:"--write-batch",description:"Write a batched update to FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--only-write-batch",description:"Like --write-batch but w/o updating destination",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--read-batch",description:"Read a batched update from FILE",requiresSeparator:!0,args:{name:"FILE",template:"filepaths"}},{name:"--protocol",description:"Force an older protocol version to be used",requiresSeparator:!0,args:{name:"NUM"}},{name:"--iconv",description:"Request charset conversion of filenames",requiresSeparator:!0,args:{name:"CONVERT_SPEC"}},{name:"--checksum-seed",description:"Set block/file checksum seed (advanced)",requiresSeparator:!0,args:{name:"NUM"}},{name:"--noatime",description:"Do not alter atime when opening source files"},{name:["-4","--ipv4"],description:"Prefer IPv4"},{name:["-6","--ipv6"],description:"Prefer IPv6"},{name:"--version",description:"Print version number"},{name:["-h","--help"],description:"Show help for rsync (-h is --help only if used alone)"}]},b=S;export{b as default};

@@ -1,4 +0,4 @@

var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,u=(t,n,o)=>t.startsWith("/")||t.startsWith("~/")||t==="~"?t.replace("~",o):n+(n.endsWith("/")?"":"/")+t,d=async(t,n,o,a)=>{let e=u(t,a,o),{stdout:i}=await n({command:"cat",args:[e]}),r=i.split(`
`).map(s=>s.trim()),p=r.filter(s=>s.toLowerCase().startsWith("include ")).map(s=>s.split(" ")[1]),l=await Promise.all(p.map(s=>d(s,n,o,a)));return[...r,...l.flat()]},c={custom:async(t,n,o)=>{let{stdout:a}=await n({command:"cat",args:[`${o.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(e=>{let i=h.exec(e);if(i)return String(i)}).filter((e,i,r)=>e&&r.indexOf(e)===i).map(e=>({name:(t[1].endsWith("@")?t[1]:"")+e,description:"SSH host"}))},trigger:"@"},m={custom:async(t,n,o)=>(await d("config",n,o.environmentVariables.HOME,"~/.ssh")).filter(e=>e.trim().toLowerCase().startsWith("host ")&&!e.includes("*")).map(e=>({name:e.split(" ")[1],description:"SSH host",priority:90}))};var f={name:"scp",description:"Copies files or directories between hosts on a network",args:[{name:"sources",description:"File or directory, local or remote ([user@]host:[path])",isVariadic:!0,generators:[c,m,{template:["history","filepaths","folders"]}]},{name:"target",description:"File or directory, local or remote ([user@]host:[path])",generators:[c,m,{template:["history","filepaths","folders"]}]}],options:[{name:"-3",description:`Copies between two remote hosts are transferred through the local
var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,u=(n,e,o)=>n.startsWith("/")||n.startsWith("~/")||n==="~"?n.replace("~",o):e.startsWith("/")||e.startsWith("~/")||e==="~"?e.replace("~",o)+(e.replace("~",o).endsWith("/")?"":"/")+n:e+(e.endsWith("/")?"":"/")+n,d=async(n,e,o,a)=>{let t=u(n,a,o),{stdout:i}=await e({command:"cat",args:[t]}),r=i.split(`
`).map(s=>s.trim()),p=r.filter(s=>s.toLowerCase().startsWith("include ")).map(s=>s.split(" ")[1]),l=await Promise.all(p.map(s=>d(s,e,o,a)));return[...r,...l.flat()]},c={custom:async(n,e,o)=>{let{stdout:a}=await e({command:"cat",args:[`${o.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(t=>{let i=h.exec(t);if(i)return String(i)}).filter((t,i,r)=>t&&r.indexOf(t)===i).map(t=>({name:(n[1].endsWith("@")?n[1]:"")+t,description:"SSH host"}))},trigger:"@"},m={custom:async(n,e,o)=>(await d("config",e,o.environmentVariables.HOME,"~/.ssh")).filter(t=>t.trim().toLowerCase().startsWith("host ")&&!t.includes("*")).map(t=>({name:t.split(" ")[1],description:"SSH host",priority:90}))};var f={name:"scp",description:"Copies files or directories between hosts on a network",args:[{name:"sources",description:"File or directory, local or remote ([user@]host:[path])",isVariadic:!0,generators:[c,m,{template:["history","filepaths","folders"]}]},{name:"target",description:"File or directory, local or remote ([user@]host:[path])",generators:[c,m,{template:["history","filepaths","folders"]}]}],options:[{name:"-3",description:`Copies between two remote hosts are transferred through the local
host. Without this option the data is copied directly between the

@@ -5,0 +5,0 @@ two remote hosts. Note that this option disables the progress

@@ -1,4 +0,4 @@

var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,f=(t,n,o)=>t.startsWith("/")||t.startsWith("~/")||t==="~"?t.replace("~",o):n+(n.endsWith("/")?"":"/")+t,d=async(t,n,o,a)=>{let e=f(t,a,o),{stdout:i}=await n({command:"cat",args:[e]}),r=i.split(`
`).map(s=>s.trim()),p=r.filter(s=>s.toLowerCase().startsWith("include ")).map(s=>s.split(" ")[1]),l=await Promise.all(p.map(s=>d(s,n,o,a)));return[...r,...l.flat()]},c={custom:async(t,n,o)=>{let{stdout:a}=await n({command:"cat",args:[`${o.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(e=>{let i=h.exec(e);if(i)return String(i)}).filter((e,i,r)=>e&&r.indexOf(e)===i).map(e=>({name:(t[1].endsWith("@")?t[1]:"")+e,description:"SSH host"}))},trigger:"@"},m={custom:async(t,n,o)=>(await d("config",n,o.environmentVariables.HOME,"~/.ssh")).filter(e=>e.trim().toLowerCase().startsWith("host ")&&!e.includes("*")).map(e=>({name:e.split(" ")[1],description:"SSH host",priority:90}))};var u={name:"sftp",description:"OpenSSH secure file transfer",args:[{name:"sources",description:"File or directory, local or remote ([user@]host:[path])",isVariadic:!0,generators:[c,m,{template:["history","filepaths","folders"]}]},{name:"target",description:"File or directory, local or remote ([user@]host:[path])",generators:[c,m,{template:["history","filepaths","folders"]}]}],options:[{name:["--help","-h"],description:"Show help for sftp"},{name:"-4",description:"Forces scp to use IPv4 addresses only"},{name:"-6",description:"Forces scp to use IPv6 addresses only"},{name:"-A",description:"Allows forwarding of ssh-agent(1) to the remote system. The default is not to forward an authentication agent"},{name:"-a",description:`Attempt to continue interrupted transfers rather than overwriting
var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,f=(n,e,s)=>n.startsWith("/")||n.startsWith("~/")||n==="~"?n.replace("~",s):e.startsWith("/")||e.startsWith("~/")||e==="~"?e.replace("~",s)+(e.replace("~",s).endsWith("/")?"":"/")+n:e+(e.endsWith("/")?"":"/")+n,d=async(n,e,s,a)=>{let t=f(n,a,s),{stdout:i}=await e({command:"cat",args:[t]}),r=i.split(`
`).map(o=>o.trim()),p=r.filter(o=>o.toLowerCase().startsWith("include ")).map(o=>o.split(" ")[1]),l=await Promise.all(p.map(o=>d(o,e,s,a)));return[...r,...l.flat()]},c={custom:async(n,e,s)=>{let{stdout:a}=await e({command:"cat",args:[`${s.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(t=>{let i=h.exec(t);if(i)return String(i)}).filter((t,i,r)=>t&&r.indexOf(t)===i).map(t=>({name:(n[1].endsWith("@")?n[1]:"")+t,description:"SSH host"}))},trigger:"@"},m={custom:async(n,e,s)=>(await d("config",e,s.environmentVariables.HOME,"~/.ssh")).filter(t=>t.trim().toLowerCase().startsWith("host ")&&!t.includes("*")).map(t=>({name:t.split(" ")[1],description:"SSH host",priority:90}))};var u={name:"sftp",description:"OpenSSH secure file transfer",args:[{name:"sources",description:"File or directory, local or remote ([user@]host:[path])",isVariadic:!0,generators:[c,m,{template:["history","filepaths","folders"]}]},{name:"target",description:"File or directory, local or remote ([user@]host:[path])",generators:[c,m,{template:["history","filepaths","folders"]}]}],options:[{name:["--help","-h"],description:"Show help for sftp"},{name:"-4",description:"Forces scp to use IPv4 addresses only"},{name:"-6",description:"Forces scp to use IPv6 addresses only"},{name:"-A",description:"Allows forwarding of ssh-agent(1) to the remote system. The default is not to forward an authentication agent"},{name:"-a",description:`Attempt to continue interrupted transfers rather than overwriting
existing partial or complete copies of files. If the partial

@@ -5,0 +5,0 @@ contents differ from those being transferred, then the resultant

@@ -1,3 +0,3 @@

var p=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,l=(t,n,o)=>t.startsWith("/")||t.startsWith("~/")||t==="~"?t.replace("~",o):n+(n.endsWith("/")?"":"/")+t,c=async(t,n,o,s)=>{let e=l(t,s,o),{stdout:a}=await n({command:"cat",args:[e]}),r=a.split(`
`).map(i=>i.trim()),m=r.filter(i=>i.toLowerCase().startsWith("include ")).map(i=>i.split(" ")[1]),d=await Promise.all(m.map(i=>c(i,n,o,s)));return[...r,...d.flat()]},h={custom:async(t,n,o)=>{let{stdout:s}=await n({command:"cat",args:[`${o.environmentVariables.HOME}/.ssh/known_hosts`]});return s.split(`
`).map(e=>{let a=p.exec(e);if(a)return String(a)}).filter((e,a,r)=>e&&r.indexOf(e)===a).map(e=>({name:(t[1].endsWith("@")?t[1]:"")+e,description:"SSH host"}))},trigger:"@"},g={custom:async(t,n,o)=>(await c("config",n,o.environmentVariables.HOME,"~/.ssh")).filter(e=>e.trim().toLowerCase().startsWith("host ")&&!e.includes("*")).map(e=>({name:e.split(" ")[1],description:"SSH host",priority:90}))},u={name:"ssh",description:"Log into a remote machine",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:[h,g,{template:"history"}]},options:[{name:"-1",description:"Forces ssh to try protocol version 1 only"},{name:"-2",description:"Forces ssh to try protocol version 2 only"},{name:"-4",description:"Forces ssh to use IPv4 addresses only"},{name:"-6",description:"Forces ssh to use IPv6 addresses only"},{name:"-A",description:"Enables forwarding of the authentication agent connection"},{name:"-a",description:"Disables forwarding of the authentication agent connection"},{name:"-b",description:"Use bind_address on the local machine as the source address of the connection",args:{name:"bind address",description:"Source address of the connection"}},{name:"-C",description:"Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11 and TCP connections)"},{name:"-c",description:"Selects the cipher specification for encrypting the session",args:{name:"cipher spec",description:"The selected cipher specification"}},{name:"-D",description:"Specifies a local 'dynamic' application-level port forwarding",args:{name:"port",description:"Port of the bind address"}},{name:"-e",description:"Sets the escape character for sessions with a pty (default: '~')",args:{name:"escape char",description:"Specified escape character"}},{name:"-F",description:"Specifies an alternative per-user configuration file",args:{name:"configfile",description:"Path to alternative config file",template:"filepaths"}},{name:"-f",description:"Requests ssh to go to background just before command execution"},{name:"-g",description:"Allows remote hosts to connect to local forwarded ports"},{name:"-I",description:"Specify the PKCS#11 shared library ssh should use to communicate with a PKCS#11 token providing the user's private RSA key",args:{name:"pkcs11"}},{name:"-i",description:"Selects a file from which the identity (private key) for public key authentication is read",isRepeatable:!0,args:{name:"identity file",description:"Path to identity (private key)",template:"filepaths"}},{name:"-K",description:"Enables GSSAPI-based authentication and forwarding (delegation) of GSSAPI credentials to the server"},{name:"-k",description:"Disables forwarding (delegation) of GSSAPI credentials to the server"},{name:"-L",description:"Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-l",description:"Specifies the user to log in as on the remote machine",args:{name:"login name",description:"Name of user logging into remote machine"}},{name:"-M",description:"Places the ssh client into ``master'' mode for connection sharing",isRepeatable:!0},{name:"-m",description:"Additionally, for protocol version 2 a comma-separated list of MAC (message authentication code) algorithms can be specified in order of preference",args:{name:"mac spec"}},{name:"-N",description:"Do not execute a remote command"},{name:"-n",description:"Redirects stdin from /dev/null (actually, prevents reading from stdin)"},{name:"-O",description:"Control an active connection multiplexing master process",args:{name:"ctl cmd",description:"Command that's passed to the master process"}},{name:"-o",description:"Can be used to give options in the format used in the configuration file",isRepeatable:!0,args:{name:"option",description:"Options that can be specified in the format of the config file",suggestions:[{name:"AddressFamily"},{name:"BatchMode"},{name:"BindAddress"},{name:"ChallengeResponseAuthentication"},{name:"CheckHostIP"},{name:"Cipher"},{name:"Ciphers"},{name:"ClearAllForwardings"},{name:"Compression"},{name:"CompressionLevel"},{name:"ConnectionAttempts"},{name:"ConnectTimeout"},{name:"ControlMaster"},{name:"ControlPath"},{name:"ControlPersist"},{name:"DynamicForward"},{name:"EscapeChar"},{name:"ExitOnForwardFailure"},{name:"ForwardAgent"},{name:"ForwardX11"},{name:"ForwardX11Timeout"},{name:"ForwardX11Trusted"},{name:"GatewayPorts"},{name:"GlobalKnownHostsFile"},{name:"GSSAPIAuthentication"},{name:"GSSAPIDelegateCredentials"},{name:"HashKnownHosts"},{name:"Host"},{name:"HostbasedAuthentication"},{name:"HostKeyAlgorithms"},{name:"HostKeyAlias"},{name:"HostName"},{name:"IdentityFile"},{name:"IdentitiesOnly"},{name:"IPQoS"},{name:"KbdInteractiveAuthentication"},{name:"KbdInteractiveDevices"},{name:"KexAlgorithms"},{name:"LocalCommand"},{name:"LocalForward"},{name:"LogLevel"},{name:"MACs"},{name:"NoHostAuthenticationForLocalhost"},{name:"NumberOfPasswordPrompts"},{name:"PasswordAuthentication"},{name:"PermitLocalCommand"},{name:"PKCS11Provider"},{name:"Port"},{name:"PreferredAuthentications"},{name:"Protocol"},{name:"ProxyCommand"},{name:"PubkeyAuthentication"},{name:"RekeyLimit"},{name:"RequestTTY"},{name:"RhostsRSAAuthentication"},{name:"RSAAuthentication"},{name:"SendEnv"},{name:"ServerAliveInterval"},{name:"ServerAliveCountMax"},{name:"StrictHostKeyChecking"},{name:"TCPKeepAlive"},{name:"Tunnel"},{name:"TunnelDevice"},{name:"UsePrivilegedPort"},{name:"User"},{name:"UserKnownHostsFile"},{name:"VerifyHostKeyDNS"},{name:"VisualHostKey"},{name:"XAuthLocation"}]}},{name:"-p",description:"Port to connect to on the remote host",args:{name:"port",description:"Port to connect to"}},{name:"-q",description:"Quiet mode. Causes most warning and diagnostic messages to be suppressed"},{name:"-R",description:"Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-S",description:"Specifies the location of a control socket for connection sharing, or the string 'none' to disable connection sharing",args:{name:"ctl_path",description:"Location of the control socket",template:"filepaths"}},{name:"-s",description:"May be used to request invocation of a subsystem on the remote system"},{name:"-T",description:"Disable pseudo-tty allocation"},{name:"-t",description:"Force pseudo-tty allocation",isRepeatable:!0},{name:"-V",description:"Display the version number and exit"},{name:"-v",description:"Verbose mode. Causes ssh to print debugging messages about its progress",isRepeatable:3},{name:"-W",description:"Requests that standard input and output on the client be forwarded to host on port over the secure channel",args:{name:"host:port",description:"Host and port to forward to"}},{name:"-w",description:"Requests tunnel device forwarding with the specified tun(4) devices between the client (local_tun) and the server (remote_tun)",args:{name:"local tun",description:"Local device to forward to"}},{name:"-X",description:"Enables X11 forwarding"},{name:"-x",description:"Disables X11 forwarding"},{name:"-Y",description:"Enables trusted X11 forwarding"},{name:"-y",description:"Send log information using the syslog(3) system module"}]},f=u;export{g as configHosts,f as default,h as knownHosts};
var p=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,l=(n,e,o)=>n.startsWith("/")||n.startsWith("~/")||n==="~"?n.replace("~",o):e.startsWith("/")||e.startsWith("~/")||e==="~"?e.replace("~",o)+(e.replace("~",o).endsWith("/")?"":"/")+n:e+(e.endsWith("/")?"":"/")+n,c=async(n,e,o,a)=>{let t=l(n,a,o),{stdout:s}=await e({command:"cat",args:[t]}),r=s.split(`
`).map(i=>i.trim()),m=r.filter(i=>i.toLowerCase().startsWith("include ")).map(i=>i.split(" ")[1]),d=await Promise.all(m.map(i=>c(i,e,o,a)));return[...r,...d.flat()]},h={custom:async(n,e,o)=>{let{stdout:a}=await e({command:"cat",args:[`${o.environmentVariables.HOME}/.ssh/known_hosts`]});return a.split(`
`).map(t=>{let s=p.exec(t);if(s)return String(s)}).filter((t,s,r)=>t&&r.indexOf(t)===s).map(t=>({name:(n[1].endsWith("@")?n[1]:"")+t,description:"SSH host"}))},trigger:"@"},g={custom:async(n,e,o)=>(await c("config",e,o.environmentVariables.HOME,"~/.ssh")).filter(t=>t.trim().toLowerCase().startsWith("host ")&&!t.includes("*")).map(t=>({name:t.split(" ")[1],description:"SSH host",priority:90}))},u={name:"ssh",description:"Log into a remote machine",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:[h,g,{template:"history"}]},options:[{name:"-1",description:"Forces ssh to try protocol version 1 only"},{name:"-2",description:"Forces ssh to try protocol version 2 only"},{name:"-4",description:"Forces ssh to use IPv4 addresses only"},{name:"-6",description:"Forces ssh to use IPv6 addresses only"},{name:"-A",description:"Enables forwarding of the authentication agent connection"},{name:"-a",description:"Disables forwarding of the authentication agent connection"},{name:"-b",description:"Use bind_address on the local machine as the source address of the connection",args:{name:"bind address",description:"Source address of the connection"}},{name:"-C",description:"Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11 and TCP connections)"},{name:"-c",description:"Selects the cipher specification for encrypting the session",args:{name:"cipher spec",description:"The selected cipher specification"}},{name:"-D",description:"Specifies a local 'dynamic' application-level port forwarding",args:{name:"port",description:"Port of the bind address"}},{name:"-e",description:"Sets the escape character for sessions with a pty (default: '~')",args:{name:"escape char",description:"Specified escape character"}},{name:"-F",description:"Specifies an alternative per-user configuration file",args:{name:"configfile",description:"Path to alternative config file",template:"filepaths"}},{name:"-f",description:"Requests ssh to go to background just before command execution"},{name:"-g",description:"Allows remote hosts to connect to local forwarded ports"},{name:"-I",description:"Specify the PKCS#11 shared library ssh should use to communicate with a PKCS#11 token providing the user's private RSA key",args:{name:"pkcs11"}},{name:"-i",description:"Selects a file from which the identity (private key) for public key authentication is read",isRepeatable:!0,args:{name:"identity file",description:"Path to identity (private key)",template:"filepaths"}},{name:"-K",description:"Enables GSSAPI-based authentication and forwarding (delegation) of GSSAPI credentials to the server"},{name:"-k",description:"Disables forwarding (delegation) of GSSAPI credentials to the server"},{name:"-L",description:"Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-l",description:"Specifies the user to log in as on the remote machine",args:{name:"login name",description:"Name of user logging into remote machine"}},{name:"-M",description:"Places the ssh client into ``master'' mode for connection sharing",isRepeatable:!0},{name:"-m",description:"Additionally, for protocol version 2 a comma-separated list of MAC (message authentication code) algorithms can be specified in order of preference",args:{name:"mac spec"}},{name:"-N",description:"Do not execute a remote command"},{name:"-n",description:"Redirects stdin from /dev/null (actually, prevents reading from stdin)"},{name:"-O",description:"Control an active connection multiplexing master process",args:{name:"ctl cmd",description:"Command that's passed to the master process"}},{name:"-o",description:"Can be used to give options in the format used in the configuration file",isRepeatable:!0,args:{name:"option",description:"Options that can be specified in the format of the config file",suggestions:[{name:"AddressFamily"},{name:"BatchMode"},{name:"BindAddress"},{name:"ChallengeResponseAuthentication"},{name:"CheckHostIP"},{name:"Cipher"},{name:"Ciphers"},{name:"ClearAllForwardings"},{name:"Compression"},{name:"CompressionLevel"},{name:"ConnectionAttempts"},{name:"ConnectTimeout"},{name:"ControlMaster"},{name:"ControlPath"},{name:"ControlPersist"},{name:"DynamicForward"},{name:"EscapeChar"},{name:"ExitOnForwardFailure"},{name:"ForwardAgent"},{name:"ForwardX11"},{name:"ForwardX11Timeout"},{name:"ForwardX11Trusted"},{name:"GatewayPorts"},{name:"GlobalKnownHostsFile"},{name:"GSSAPIAuthentication"},{name:"GSSAPIDelegateCredentials"},{name:"HashKnownHosts"},{name:"Host"},{name:"HostbasedAuthentication"},{name:"HostKeyAlgorithms"},{name:"HostKeyAlias"},{name:"HostName"},{name:"IdentityFile"},{name:"IdentitiesOnly"},{name:"IPQoS"},{name:"KbdInteractiveAuthentication"},{name:"KbdInteractiveDevices"},{name:"KexAlgorithms"},{name:"LocalCommand"},{name:"LocalForward"},{name:"LogLevel"},{name:"MACs"},{name:"NoHostAuthenticationForLocalhost"},{name:"NumberOfPasswordPrompts"},{name:"PasswordAuthentication"},{name:"PermitLocalCommand"},{name:"PKCS11Provider"},{name:"Port"},{name:"PreferredAuthentications"},{name:"Protocol"},{name:"ProxyCommand"},{name:"PubkeyAuthentication"},{name:"RekeyLimit"},{name:"RequestTTY"},{name:"RhostsRSAAuthentication"},{name:"RSAAuthentication"},{name:"SendEnv"},{name:"ServerAliveInterval"},{name:"ServerAliveCountMax"},{name:"StrictHostKeyChecking"},{name:"TCPKeepAlive"},{name:"Tunnel"},{name:"TunnelDevice"},{name:"UsePrivilegedPort"},{name:"User"},{name:"UserKnownHostsFile"},{name:"VerifyHostKeyDNS"},{name:"VisualHostKey"},{name:"XAuthLocation"}]}},{name:"-p",description:"Port to connect to on the remote host",args:{name:"port",description:"Port to connect to"}},{name:"-q",description:"Quiet mode. Causes most warning and diagnostic messages to be suppressed"},{name:"-R",description:"Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-S",description:"Specifies the location of a control socket for connection sharing, or the string 'none' to disable connection sharing",args:{name:"ctl_path",description:"Location of the control socket",template:"filepaths"}},{name:"-s",description:"May be used to request invocation of a subsystem on the remote system"},{name:"-T",description:"Disable pseudo-tty allocation"},{name:"-t",description:"Force pseudo-tty allocation",isRepeatable:!0},{name:"-V",description:"Display the version number and exit"},{name:"-v",description:"Verbose mode. Causes ssh to print debugging messages about its progress",isRepeatable:3},{name:"-W",description:"Requests that standard input and output on the client be forwarded to host on port over the secure channel",args:{name:"host:port",description:"Host and port to forward to"}},{name:"-w",description:"Requests tunnel device forwarding with the specified tun(4) devices between the client (local_tun) and the server (remote_tun)",args:{name:"local tun",description:"Local device to forward to"}},{name:"-X",description:"Enables X11 forwarding"},{name:"-x",description:"Disables X11 forwarding"},{name:"-Y",description:"Enables trusted X11 forwarding"},{name:"-y",description:"Send log information using the syslog(3) system module"}]},f=u;export{g as configHosts,f as default,h as knownHosts};

@@ -1,3 +0,3 @@

var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,g=(n,t,s)=>n.startsWith("/")||n.startsWith("~/")||n==="~"?n.replace("~",s):t+(t.endsWith("/")?"":"/")+n,m=async(n,t,s,r)=>{let o=g(n,r,s),{stdout:a}=await t({command:"cat",args:[o]}),c=a.split(`
`).map(i=>i.trim()),l=c.filter(i=>i.toLowerCase().startsWith("include ")).map(i=>i.split(" ")[1]),u=await Promise.all(l.map(i=>m(i,t,s,r)));return[...c,...u.flat()]},f={custom:async(n,t,s)=>{let{stdout:r}=await t({command:"cat",args:[`${s.environmentVariables.HOME}/.ssh/known_hosts`]});return r.split(`
`).map(o=>{let a=h.exec(o);if(a)return String(a)}).filter((o,a,c)=>o&&c.indexOf(o)===a).map(o=>({name:(n[1].endsWith("@")?n[1]:"")+o,description:"SSH host"}))},trigger:"@"},b={custom:async(n,t,s)=>(await m("config",t,s.environmentVariables.HOME,"~/.ssh")).filter(o=>o.trim().toLowerCase().startsWith("host ")&&!o.includes("*")).map(o=>({name:o.split(" ")[1],description:"SSH host",priority:90}))},v={name:"ssh",description:"Log into a remote machine",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:[f,b,{template:"history"}]},options:[{name:"-1",description:"Forces ssh to try protocol version 1 only"},{name:"-2",description:"Forces ssh to try protocol version 2 only"},{name:"-4",description:"Forces ssh to use IPv4 addresses only"},{name:"-6",description:"Forces ssh to use IPv6 addresses only"},{name:"-A",description:"Enables forwarding of the authentication agent connection"},{name:"-a",description:"Disables forwarding of the authentication agent connection"},{name:"-b",description:"Use bind_address on the local machine as the source address of the connection",args:{name:"bind address",description:"Source address of the connection"}},{name:"-C",description:"Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11 and TCP connections)"},{name:"-c",description:"Selects the cipher specification for encrypting the session",args:{name:"cipher spec",description:"The selected cipher specification"}},{name:"-D",description:"Specifies a local 'dynamic' application-level port forwarding",args:{name:"port",description:"Port of the bind address"}},{name:"-e",description:"Sets the escape character for sessions with a pty (default: '~')",args:{name:"escape char",description:"Specified escape character"}},{name:"-F",description:"Specifies an alternative per-user configuration file",args:{name:"configfile",description:"Path to alternative config file",template:"filepaths"}},{name:"-f",description:"Requests ssh to go to background just before command execution"},{name:"-g",description:"Allows remote hosts to connect to local forwarded ports"},{name:"-I",description:"Specify the PKCS#11 shared library ssh should use to communicate with a PKCS#11 token providing the user's private RSA key",args:{name:"pkcs11"}},{name:"-i",description:"Selects a file from which the identity (private key) for public key authentication is read",isRepeatable:!0,args:{name:"identity file",description:"Path to identity (private key)",template:"filepaths"}},{name:"-K",description:"Enables GSSAPI-based authentication and forwarding (delegation) of GSSAPI credentials to the server"},{name:"-k",description:"Disables forwarding (delegation) of GSSAPI credentials to the server"},{name:"-L",description:"Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-l",description:"Specifies the user to log in as on the remote machine",args:{name:"login name",description:"Name of user logging into remote machine"}},{name:"-M",description:"Places the ssh client into ``master'' mode for connection sharing",isRepeatable:!0},{name:"-m",description:"Additionally, for protocol version 2 a comma-separated list of MAC (message authentication code) algorithms can be specified in order of preference",args:{name:"mac spec"}},{name:"-N",description:"Do not execute a remote command"},{name:"-n",description:"Redirects stdin from /dev/null (actually, prevents reading from stdin)"},{name:"-O",description:"Control an active connection multiplexing master process",args:{name:"ctl cmd",description:"Command that's passed to the master process"}},{name:"-o",description:"Can be used to give options in the format used in the configuration file",isRepeatable:!0,args:{name:"option",description:"Options that can be specified in the format of the config file",suggestions:[{name:"AddressFamily"},{name:"BatchMode"},{name:"BindAddress"},{name:"ChallengeResponseAuthentication"},{name:"CheckHostIP"},{name:"Cipher"},{name:"Ciphers"},{name:"ClearAllForwardings"},{name:"Compression"},{name:"CompressionLevel"},{name:"ConnectionAttempts"},{name:"ConnectTimeout"},{name:"ControlMaster"},{name:"ControlPath"},{name:"ControlPersist"},{name:"DynamicForward"},{name:"EscapeChar"},{name:"ExitOnForwardFailure"},{name:"ForwardAgent"},{name:"ForwardX11"},{name:"ForwardX11Timeout"},{name:"ForwardX11Trusted"},{name:"GatewayPorts"},{name:"GlobalKnownHostsFile"},{name:"GSSAPIAuthentication"},{name:"GSSAPIDelegateCredentials"},{name:"HashKnownHosts"},{name:"Host"},{name:"HostbasedAuthentication"},{name:"HostKeyAlgorithms"},{name:"HostKeyAlias"},{name:"HostName"},{name:"IdentityFile"},{name:"IdentitiesOnly"},{name:"IPQoS"},{name:"KbdInteractiveAuthentication"},{name:"KbdInteractiveDevices"},{name:"KexAlgorithms"},{name:"LocalCommand"},{name:"LocalForward"},{name:"LogLevel"},{name:"MACs"},{name:"NoHostAuthenticationForLocalhost"},{name:"NumberOfPasswordPrompts"},{name:"PasswordAuthentication"},{name:"PermitLocalCommand"},{name:"PKCS11Provider"},{name:"Port"},{name:"PreferredAuthentications"},{name:"Protocol"},{name:"ProxyCommand"},{name:"PubkeyAuthentication"},{name:"RekeyLimit"},{name:"RequestTTY"},{name:"RhostsRSAAuthentication"},{name:"RSAAuthentication"},{name:"SendEnv"},{name:"ServerAliveInterval"},{name:"ServerAliveCountMax"},{name:"StrictHostKeyChecking"},{name:"TCPKeepAlive"},{name:"Tunnel"},{name:"TunnelDevice"},{name:"UsePrivilegedPort"},{name:"User"},{name:"UserKnownHostsFile"},{name:"VerifyHostKeyDNS"},{name:"VisualHostKey"},{name:"XAuthLocation"}]}},{name:"-p",description:"Port to connect to on the remote host",args:{name:"port",description:"Port to connect to"}},{name:"-q",description:"Quiet mode. Causes most warning and diagnostic messages to be suppressed"},{name:"-R",description:"Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-S",description:"Specifies the location of a control socket for connection sharing, or the string 'none' to disable connection sharing",args:{name:"ctl_path",description:"Location of the control socket",template:"filepaths"}},{name:"-s",description:"May be used to request invocation of a subsystem on the remote system"},{name:"-T",description:"Disable pseudo-tty allocation"},{name:"-t",description:"Force pseudo-tty allocation",isRepeatable:!0},{name:"-V",description:"Display the version number and exit"},{name:"-v",description:"Verbose mode. Causes ssh to print debugging messages about its progress",isRepeatable:3},{name:"-W",description:"Requests that standard input and output on the client be forwarded to host on port over the secure channel",args:{name:"host:port",description:"Host and port to forward to"}},{name:"-w",description:"Requests tunnel device forwarding with the specified tun(4) devices between the client (local_tun) and the server (remote_tun)",args:{name:"local tun",description:"Local device to forward to"}},{name:"-X",description:"Enables X11 forwarding"},{name:"-x",description:"Disables X11 forwarding"},{name:"-Y",description:"Enables trusted X11 forwarding"},{name:"-y",description:"Send log information using the syslog(3) system module"}]},d=v;var p=[{name:["-l","--login"],description:"Remote host login"},{name:"--proxy",description:"SSH proxy address",args:{name:"Teleport proxy address",generators:{script:["tsh","clusters","--format=json"],postProcess:n=>JSON.parse(n).map(t=>t.cluster_name)}}},{name:"--user",description:"SSH proxy user",args:{name:"user",generators:{script:["tsh","status","--format","json"],postProcess:n=>[JSON.parse(n).active.username]}}},{name:"--ttl",description:"Minutes to live for a SSH session",args:{name:"time"}},{name:["-i","--identity"],description:"Identity file",args:{name:"file",template:"filepaths"}},{name:"--cert-format",description:"SSH certificate format",args:{}},{name:"--insecure",description:"Do not verify server's certificate and host name. Use only in test environments"},{name:"--auth",description:"Specify the name of authentication connector to use",args:{}},{name:"--skip-version-check",description:"Skip version checking between server and client"},{name:["-d","--debug"],description:"Verbose logging to stdout"},{name:["-k","--add-keys-to-agent"],description:"Controls how keys are handled. Valid values are [auto no yes only]"},{name:"--enable-escape-sequences",description:"Enable support for SSH escape sequences. Type '~?' during an SSH session to list supported sequences. Default is enabled"},{name:"--bind-addr",description:"Override host:port used when opening a browser for cluster logins"},{name:["-J","--jumphost"],description:"SSH jumphost"}],e=[...p,{name:["-f","--format"],description:"Format output",args:{name:"format",suggestions:["text","json","yaml"]}},{name:["-q","--quiet"],description:"Quiet mode"}],S={name:"tsh",description:"TSH: Teleport Authentication Gateway Client",subcommands:[{name:"version",description:"Print the version"},{name:"ssh",description:"Run shell or execute a command on a remote SSH node",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:{script:["tsh","ls","--format=json"],postProcess:n=>JSON.parse(n).map(t=>({name:t.spec.hostname,description:`Access expires: ${t.metadata.expires}`}))}},options:d.options},{name:"aws",description:"Access AWS API",options:e},{name:"apps",description:"View and control proxied applications",options:e,subcommands:[{name:"ls",description:"List available applications",options:e},{name:"login",options:e,description:"Retrieve short-lived certificate for an app"},{name:"logout",description:"Remove app certificate",options:e},{name:"config",description:"Print app connection information",options:e}]},{name:"proxy",options:e,description:"Run local TLS proxy allowing connecting to Teleport in single-port mode",subcommands:[{name:"ssh",options:e,description:"Start local TLS proxy for ssh connections when using Teleport in single-port mode"},{name:"db",options:e,description:"Start local TLS proxy for database connections when using Teleport in single-port mode"}]},{name:"db",options:e,description:"View and control proxied databases",subcommands:[{name:"ls",description:"List all available databases",options:e},{name:"login",description:"Retrieve credentials for a database",options:e},{name:"logout",description:"Remove database credentials",options:e},{name:"env",options:e,description:"Print environment variables for the configured database"},{name:"config",options:e,description:"Print database connection information. Useful when configuring GUI clients"},{name:"connect",description:"Connect Connect to a database",options:e}]},{name:"join",description:"Join the active SSH session",options:e},{name:"play",description:"Replay the recorded SSH session",options:e},{name:"scp",description:"Secure file copy",options:e},{name:"ls",description:"List remote SSH nodes",options:e},{name:"clusters",description:"List available Teleport clusters",options:e},{name:"login",description:"Log in to a cluster and retrieve the session certificate",options:e},{name:"logout",description:"Delete a cluster certificate",options:e},{name:"status",description:"Display the list of proxy servers and retrieved certificates",options:e},{name:"env",description:"Print commands to set Teleport session environment variables",options:e},{name:"request",description:"Manage access requests",subcommands:[{name:"ls",description:"List access requests",options:e},{name:"show",description:"Show request details",options:e},{name:"new",description:"Create a new access request",options:e},{name:"review",description:"Review an access request",options:e}],options:e},{name:"kube",description:"Manage available kubernetes clusters",subcommands:[{name:"ls",description:"Get a list of kubernetes clusters",options:e},{name:"login",description:"Login to a kubernetes cluster",options:e},{name:"sessions",description:"Get a list of active kubernetes sessions",options:e},{name:"exec",description:"Execute a command in a kubernetes pod",options:e},{name:"join",description:"Join an active Kubernetes session",options:e}],options:e},{name:"mfa",description:"Manage multi-factor authentication (MFA) devices",subcommands:[{name:"ls",description:"Get a list of registered MFA devices",options:e},{name:"add",description:"Add a new MFA device",options:e},{name:"rm",description:"Remove a MFA device",options:e}],options:e},{name:"config",description:"Print OpenSSH configuration details",options:e}],options:p},A=S;export{A as default};
var h=/(?:[a-zA-Z0-9-]+\.)+[a-zA-Z0-9]+/,g=(t,n,s)=>t.startsWith("/")||t.startsWith("~/")||t==="~"?t.replace("~",s):n.startsWith("/")||n.startsWith("~/")||n==="~"?n.replace("~",s)+(n.replace("~",s).endsWith("/")?"":"/")+t:n+(n.endsWith("/")?"":"/")+t,d=async(t,n,s,r)=>{let o=g(t,r,s),{stdout:a}=await n({command:"cat",args:[o]}),c=a.split(`
`).map(i=>i.trim()),l=c.filter(i=>i.toLowerCase().startsWith("include ")).map(i=>i.split(" ")[1]),u=await Promise.all(l.map(i=>d(i,n,s,r)));return[...c,...u.flat()]},f={custom:async(t,n,s)=>{let{stdout:r}=await n({command:"cat",args:[`${s.environmentVariables.HOME}/.ssh/known_hosts`]});return r.split(`
`).map(o=>{let a=h.exec(o);if(a)return String(a)}).filter((o,a,c)=>o&&c.indexOf(o)===a).map(o=>({name:(t[1].endsWith("@")?t[1]:"")+o,description:"SSH host"}))},trigger:"@"},v={custom:async(t,n,s)=>(await d("config",n,s.environmentVariables.HOME,"~/.ssh")).filter(o=>o.trim().toLowerCase().startsWith("host ")&&!o.includes("*")).map(o=>({name:o.split(" ")[1],description:"SSH host",priority:90}))},S={name:"ssh",description:"Log into a remote machine",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:[f,v,{template:"history"}]},options:[{name:"-1",description:"Forces ssh to try protocol version 1 only"},{name:"-2",description:"Forces ssh to try protocol version 2 only"},{name:"-4",description:"Forces ssh to use IPv4 addresses only"},{name:"-6",description:"Forces ssh to use IPv6 addresses only"},{name:"-A",description:"Enables forwarding of the authentication agent connection"},{name:"-a",description:"Disables forwarding of the authentication agent connection"},{name:"-b",description:"Use bind_address on the local machine as the source address of the connection",args:{name:"bind address",description:"Source address of the connection"}},{name:"-C",description:"Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11 and TCP connections)"},{name:"-c",description:"Selects the cipher specification for encrypting the session",args:{name:"cipher spec",description:"The selected cipher specification"}},{name:"-D",description:"Specifies a local 'dynamic' application-level port forwarding",args:{name:"port",description:"Port of the bind address"}},{name:"-e",description:"Sets the escape character for sessions with a pty (default: '~')",args:{name:"escape char",description:"Specified escape character"}},{name:"-F",description:"Specifies an alternative per-user configuration file",args:{name:"configfile",description:"Path to alternative config file",template:"filepaths"}},{name:"-f",description:"Requests ssh to go to background just before command execution"},{name:"-g",description:"Allows remote hosts to connect to local forwarded ports"},{name:"-I",description:"Specify the PKCS#11 shared library ssh should use to communicate with a PKCS#11 token providing the user's private RSA key",args:{name:"pkcs11"}},{name:"-i",description:"Selects a file from which the identity (private key) for public key authentication is read",isRepeatable:!0,args:{name:"identity file",description:"Path to identity (private key)",template:"filepaths"}},{name:"-K",description:"Enables GSSAPI-based authentication and forwarding (delegation) of GSSAPI credentials to the server"},{name:"-k",description:"Disables forwarding (delegation) of GSSAPI credentials to the server"},{name:"-L",description:"Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-l",description:"Specifies the user to log in as on the remote machine",args:{name:"login name",description:"Name of user logging into remote machine"}},{name:"-M",description:"Places the ssh client into ``master'' mode for connection sharing",isRepeatable:!0},{name:"-m",description:"Additionally, for protocol version 2 a comma-separated list of MAC (message authentication code) algorithms can be specified in order of preference",args:{name:"mac spec"}},{name:"-N",description:"Do not execute a remote command"},{name:"-n",description:"Redirects stdin from /dev/null (actually, prevents reading from stdin)"},{name:"-O",description:"Control an active connection multiplexing master process",args:{name:"ctl cmd",description:"Command that's passed to the master process"}},{name:"-o",description:"Can be used to give options in the format used in the configuration file",isRepeatable:!0,args:{name:"option",description:"Options that can be specified in the format of the config file",suggestions:[{name:"AddressFamily"},{name:"BatchMode"},{name:"BindAddress"},{name:"ChallengeResponseAuthentication"},{name:"CheckHostIP"},{name:"Cipher"},{name:"Ciphers"},{name:"ClearAllForwardings"},{name:"Compression"},{name:"CompressionLevel"},{name:"ConnectionAttempts"},{name:"ConnectTimeout"},{name:"ControlMaster"},{name:"ControlPath"},{name:"ControlPersist"},{name:"DynamicForward"},{name:"EscapeChar"},{name:"ExitOnForwardFailure"},{name:"ForwardAgent"},{name:"ForwardX11"},{name:"ForwardX11Timeout"},{name:"ForwardX11Trusted"},{name:"GatewayPorts"},{name:"GlobalKnownHostsFile"},{name:"GSSAPIAuthentication"},{name:"GSSAPIDelegateCredentials"},{name:"HashKnownHosts"},{name:"Host"},{name:"HostbasedAuthentication"},{name:"HostKeyAlgorithms"},{name:"HostKeyAlias"},{name:"HostName"},{name:"IdentityFile"},{name:"IdentitiesOnly"},{name:"IPQoS"},{name:"KbdInteractiveAuthentication"},{name:"KbdInteractiveDevices"},{name:"KexAlgorithms"},{name:"LocalCommand"},{name:"LocalForward"},{name:"LogLevel"},{name:"MACs"},{name:"NoHostAuthenticationForLocalhost"},{name:"NumberOfPasswordPrompts"},{name:"PasswordAuthentication"},{name:"PermitLocalCommand"},{name:"PKCS11Provider"},{name:"Port"},{name:"PreferredAuthentications"},{name:"Protocol"},{name:"ProxyCommand"},{name:"PubkeyAuthentication"},{name:"RekeyLimit"},{name:"RequestTTY"},{name:"RhostsRSAAuthentication"},{name:"RSAAuthentication"},{name:"SendEnv"},{name:"ServerAliveInterval"},{name:"ServerAliveCountMax"},{name:"StrictHostKeyChecking"},{name:"TCPKeepAlive"},{name:"Tunnel"},{name:"TunnelDevice"},{name:"UsePrivilegedPort"},{name:"User"},{name:"UserKnownHostsFile"},{name:"VerifyHostKeyDNS"},{name:"VisualHostKey"},{name:"XAuthLocation"}]}},{name:"-p",description:"Port to connect to on the remote host",args:{name:"port",description:"Port to connect to"}},{name:"-q",description:"Quiet mode. Causes most warning and diagnostic messages to be suppressed"},{name:"-R",description:"Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side",args:{name:"port:host:hostport",description:"Local port, followed by host and host port to forward to"}},{name:"-S",description:"Specifies the location of a control socket for connection sharing, or the string 'none' to disable connection sharing",args:{name:"ctl_path",description:"Location of the control socket",template:"filepaths"}},{name:"-s",description:"May be used to request invocation of a subsystem on the remote system"},{name:"-T",description:"Disable pseudo-tty allocation"},{name:"-t",description:"Force pseudo-tty allocation",isRepeatable:!0},{name:"-V",description:"Display the version number and exit"},{name:"-v",description:"Verbose mode. Causes ssh to print debugging messages about its progress",isRepeatable:3},{name:"-W",description:"Requests that standard input and output on the client be forwarded to host on port over the secure channel",args:{name:"host:port",description:"Host and port to forward to"}},{name:"-w",description:"Requests tunnel device forwarding with the specified tun(4) devices between the client (local_tun) and the server (remote_tun)",args:{name:"local tun",description:"Local device to forward to"}},{name:"-X",description:"Enables X11 forwarding"},{name:"-x",description:"Disables X11 forwarding"},{name:"-Y",description:"Enables trusted X11 forwarding"},{name:"-y",description:"Send log information using the syslog(3) system module"}]},m=S;var p=[{name:["-l","--login"],description:"Remote host login"},{name:"--proxy",description:"SSH proxy address",args:{name:"Teleport proxy address",generators:{script:["tsh","clusters","--format=json"],postProcess:t=>JSON.parse(t).map(n=>n.cluster_name)}}},{name:"--user",description:"SSH proxy user",args:{name:"user",generators:{script:["tsh","status","--format","json"],postProcess:t=>[JSON.parse(t).active.username]}}},{name:"--ttl",description:"Minutes to live for a SSH session",args:{name:"time"}},{name:["-i","--identity"],description:"Identity file",args:{name:"file",template:"filepaths"}},{name:"--cert-format",description:"SSH certificate format",args:{}},{name:"--insecure",description:"Do not verify server's certificate and host name. Use only in test environments"},{name:"--auth",description:"Specify the name of authentication connector to use",args:{}},{name:"--skip-version-check",description:"Skip version checking between server and client"},{name:["-d","--debug"],description:"Verbose logging to stdout"},{name:["-k","--add-keys-to-agent"],description:"Controls how keys are handled. Valid values are [auto no yes only]"},{name:"--enable-escape-sequences",description:"Enable support for SSH escape sequences. Type '~?' during an SSH session to list supported sequences. Default is enabled"},{name:"--bind-addr",description:"Override host:port used when opening a browser for cluster logins"},{name:["-J","--jumphost"],description:"SSH jumphost"}],e=[...p,{name:["-f","--format"],description:"Format output",args:{name:"format",suggestions:["text","json","yaml"]}},{name:["-q","--quiet"],description:"Quiet mode"}],b={name:"tsh",description:"TSH: Teleport Authentication Gateway Client",subcommands:[{name:"version",description:"Print the version"},{name:"ssh",description:"Run shell or execute a command on a remote SSH node",args:{name:"user@hostname",description:"Address of remote machine to log into",generators:{script:["tsh","ls","--format=json"],postProcess:t=>JSON.parse(t).map(n=>({name:n.spec.hostname,description:`Access expires: ${n.metadata.expires}`}))}},options:m.options},{name:"aws",description:"Access AWS API",options:e},{name:"apps",description:"View and control proxied applications",options:e,subcommands:[{name:"ls",description:"List available applications",options:e},{name:"login",options:e,description:"Retrieve short-lived certificate for an app"},{name:"logout",description:"Remove app certificate",options:e},{name:"config",description:"Print app connection information",options:e}]},{name:"proxy",options:e,description:"Run local TLS proxy allowing connecting to Teleport in single-port mode",subcommands:[{name:"ssh",options:e,description:"Start local TLS proxy for ssh connections when using Teleport in single-port mode"},{name:"db",options:e,description:"Start local TLS proxy for database connections when using Teleport in single-port mode"}]},{name:"db",options:e,description:"View and control proxied databases",subcommands:[{name:"ls",description:"List all available databases",options:e},{name:"login",description:"Retrieve credentials for a database",options:e},{name:"logout",description:"Remove database credentials",options:e},{name:"env",options:e,description:"Print environment variables for the configured database"},{name:"config",options:e,description:"Print database connection information. Useful when configuring GUI clients"},{name:"connect",description:"Connect Connect to a database",options:e}]},{name:"join",description:"Join the active SSH session",options:e},{name:"play",description:"Replay the recorded SSH session",options:e},{name:"scp",description:"Secure file copy",options:e},{name:"ls",description:"List remote SSH nodes",options:e},{name:"clusters",description:"List available Teleport clusters",options:e},{name:"login",description:"Log in to a cluster and retrieve the session certificate",options:e},{name:"logout",description:"Delete a cluster certificate",options:e},{name:"status",description:"Display the list of proxy servers and retrieved certificates",options:e},{name:"env",description:"Print commands to set Teleport session environment variables",options:e},{name:"request",description:"Manage access requests",subcommands:[{name:"ls",description:"List access requests",options:e},{name:"show",description:"Show request details",options:e},{name:"new",description:"Create a new access request",options:e},{name:"review",description:"Review an access request",options:e}],options:e},{name:"kube",description:"Manage available kubernetes clusters",subcommands:[{name:"ls",description:"Get a list of kubernetes clusters",options:e},{name:"login",description:"Login to a kubernetes cluster",options:e},{name:"sessions",description:"Get a list of active kubernetes sessions",options:e},{name:"exec",description:"Execute a command in a kubernetes pod",options:e},{name:"join",description:"Join an active Kubernetes session",options:e}],options:e},{name:"mfa",description:"Manage multi-factor authentication (MFA) devices",subcommands:[{name:"ls",description:"Get a list of registered MFA devices",options:e},{name:"add",description:"Add a new MFA device",options:e},{name:"rm",description:"Remove a MFA device",options:e}],options:e},{name:"config",description:"Print OpenSSH configuration details",options:e}],options:p},A=b;export{A as default};
{
"name": "@withfig/autocomplete",
"version": "2.651.0",
"version": "2.651.1",
"description": "Fig Autocomplete Specs",

@@ -5,0 +5,0 @@ "schemaVersion": "v7",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc