cli

package
v0.0.0-...-85711f0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cli is the entrypoint to writing a custom CLI for a service built using the DC/OS SDK. It provides a number of standard subcommands that allow users to interact with their service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArguments

func GetArguments() []string

GetArguments returns an array of the arguments passed into this CLI.

func GetModuleName

func GetModuleName() (string, error)

GetModuleName returns the module name, if it was passed in, or an error otherwise.

func HandleDefaultSections

func HandleDefaultSections(app *kingpin.Application)

HandleDefaultSections is a utility method to allow applications built around this library to provide all of the standard subcommands of the CLI.

func New

func New() *kingpin.Application

New instantiates a new kingpin.Application and returns a reference to it. This contains basic flags that are universally applicable, e.g. --name.

Types

This section is empty.

Directories

Path Synopsis
Package client implements a set of common functionality that are used by DC/OS SDK commands to talk to schedulers built using the SDK or other DC/OS components (e.g.
Package client implements a set of common functionality that are used by DC/OS SDK commands to talk to schedulers built using the SDK or other DC/OS components (e.g.

Jump to

Keyboard shortcuts

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