cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.2.0"

Version represents the current version of DogLeash CLI tool

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "dogleash",
	Short: "Datadog CLI tool written in golang",
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type DogleashConfig

type DogleashConfig struct {
	Organizations []Organization
	Current       string `mapstructure:"current"`
}

dogleash config current and orgs

DC dogleash config

type Organization

type Organization struct {
	Name   string `mapstructure:"name"`
	APIKey string `mapstructure:"apikey"`
	APPKey string `mapstructure:"appkey"`
}

orgs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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