command

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 10 Imported by: 2

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