Documentation ¶
Overview ¶
Package client provides utility functions for gluing new commands easily into sanssh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSynopsis ¶
func GenerateSynopsis(c *subcommands.Commander, leading int) string
GenerateSynopsis will generate a consistent snnopysis for a top level command with N sub-commands contained within it. The leading param indicates the number of leading tabs to generate before the name and synopsis. Generally this is 2 unless you're a subcommand of a subcommand and then you'll want more.
func GenerateUsage ¶
GenerateUsage will return a usage string to a top level command with N sub-commands contained within it.
func SetupSubpackage ¶
func SetupSubpackage(name string, f *flag.FlagSet) *subcommands.Commander
SetupSubpackage is a helper to create a Commander to hold the actual commands run inside of a top-level command. The returned Commander should then have the relevant sub-commands registered within it.
Types ¶
This section is empty.