Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppVersion = "dev"
AppVersion will be set at build time via -ldflags
View Source
var RootCmd = &cobra.Command{ Use: "sshc [host]", Short: "SSH Manager - A modern SSH connection manager", Long: `SSHM is a modern SSH manager for your terminal. Main usage: Running 'sshc' (without arguments) opens the interactive TUI window to browse, search, and connect to your SSH hosts graphically. Running 'sshc <host>' connects directly to the specified host and records the connection in your history. You can also use sshc in CLI mode for other operations like adding, editing, or searching hosts. Hosts are read from your ~/.ssh/config file by default.`, Version: AppVersion, Args: cobra.ArbitraryArgs, SilenceUsage: true, SilenceErrors: true, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { runInteractiveMode() return nil } hostName := args[0] connectToHost(hostName) return nil }, }
RootCmd is the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.