command

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

garbaged - clean up manually modified hosts, quick version.go: struct for version command

Copyright 2018 Threat Stack, Inc. Licensed under the BSD 3-clause license; see LICENSE.md for more information. Author: Patrick T. Cable II <pat.cable@threatstack.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	UI cli.Ui
}

Meta contain the meta-option that nearly all subcommand inherits.

type ServerCommand

type ServerCommand struct {
	Meta
}

ServerCommand gets the data from the CLI

func (*ServerCommand) Help

func (c *ServerCommand) Help() string

Help prints more useful info for server

func (*ServerCommand) Run

func (c *ServerCommand) Run(args []string) int

Run actually.. does the stuff.

func (*ServerCommand) Synopsis

func (c *ServerCommand) Synopsis() string

Synopsis gives the help output for server

type VersionCommand

type VersionCommand struct {
	Meta

	Name     string
	Version  string
	Revision string
}

VersionCommand stores information about the App version/name

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

Help would uh, give help output for version.

func (*VersionCommand) Run

func (c *VersionCommand) Run(args []string) int

Run actually execs the version command

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Synopsis gives an overview of the version command

Jump to

Keyboard shortcuts

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