client

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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) string

GenerateSynopsis will generate a consistent snnopysis for a top level command with N sub-commands contained within it.

func GenerateUsage

func GenerateUsage(name string, synopsis string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL