feat: add netssh link and shell aliases for links
netssh link add|list|remove manages links; netssh NAME follows them, links complete with Tab and get a shell alias. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
793f095e80
commit
e905a39068
5 files changed
+247
-1
No files matched your search
+2
-1
@@ -58,6 +58,7 @@ var managedSubcommands = map[string]bool{
|
||||
"export": true,
|
||||
"token": true,
|
||||
"known-hosts": true,
|
||||
"link": true,
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -709,7 +710,7 @@ func rootCmd() *cobra.Command {
|
||||
}
|
||||
|
||||
root.AddCommand(doctorCmd(), explainCmd(), favoritesCmd(), historyCmd(), batchCmd(), configCmd(), runCmd(), notesCmd(), configureCmd(), searchCmd(), cacheCmd(), aliasCmd(), hookCmd(), shellInitCmd(), versionCmd(), uninstallCmd(), sftpCmd(), scpCmd(), tunnelCmd(), hostsCmd(), multiCmd(), syncCmd(),
|
||||
openCmd(), infoCmd(), whoisCmd(), copyIDCmd(), exportCmd(), tokenCmd(), knownHostsCmd())
|
||||
openCmd(), infoCmd(), whoisCmd(), copyIDCmd(), exportCmd(), tokenCmd(), knownHostsCmd(), linkCmd())
|
||||
|
||||
// cobra builds the "completion" command lazily; force init so we can extend it.
|
||||
root.InitDefaultCompletionCmd()
|
||||
|
||||
Reference in new issue
Block a user