cli

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package cli provides test helpers for testing the emp CLI against an Empire environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	// contains filtered or unexported fields
}

CLI represents an `emp` CLI.

func New

func New(path string, url *url.URL) (*CLI, error)

New returns a new CLI instance, which can be used to run emp commands.

func (*CLI) Authorize

func (c *CLI) Authorize(user, token string) error

Authorize writes the access token to the .netrc file.

func (*CLI) Close

func (c *CLI) Close() error

Close closes the file descriptor for the netrc.

func (*CLI) Command

func (c *CLI) Command(arg ...string) *exec.Cmd

Command creates a new exec.Cmd instance that will run an emp command.

Jump to

Keyboard shortcuts

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