commands

package
v0.0.0-...-ecb7df7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package commands manages the command line Vault tool.

It allows for subcommands to be loaded into a registry. These are called via the first argument to the `vault` command. It also provides the means to get help on the `vault` command as well as all subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Help

func Help(args []string) error

Help handles showing help to the user. It accepts a slice of strings. If this is empty, it prints the master help for Vault. If not, it assumes that the first argument is the topic one would want help on. If this is `commands`, it provides a list of commands with their names. Otherwise, it attempts to provide help for the provided command.

func Main

func Main(cfg *config.Config, command string, args []string) error

Main takes a command and a list of arguments and attempts to run the matching subcommand, using those arguments.

Types

This section is empty.

Directories

Path Synopsis
Package add provides Vault subcommands for adding/importing data to the database.
Package add provides Vault subcommands for adding/importing data to the database.
Package command manages the basics of subcommands.
Package command manages the basics of subcommands.
Package hierarchy holds the Vault subcommands for managing the hierarchy of data, sources, and summaries.
Package hierarchy holds the Vault subcommands for managing the hierarchy of data, sources, and summaries.
Package serve hosts the `vault serve` subcommand.
Package serve hosts the `vault serve` subcommand.

Jump to

Keyboard shortcuts

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