command

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Name string

	// Path is the absolute path to the driver executable.
	// If unset, the executable is expected to be named "cnab-NAME" and be on the PATH.
	Path string
	// contains filtered or unexported fields
}

Driver relies upon a system command to provide a driver implementation

func (*Driver) CheckDriverExists

func (d *Driver) CheckDriverExists() bool

CheckDriverExists checks to see if the named driver exists

func (*Driver) Handles

func (d *Driver) Handles(dt string) bool

Handles executes the driver with `--handles` and parses the results

func (*Driver) Run

Run executes the command

Jump to

Keyboard shortcuts

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