cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cli implements the CLI functionality main defers execution to the exported methods in this package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidTarget

func IsValidTarget(target string) bool

IsValidTarget compares 'target' against a hardcoded list of valid targets to check whether or not it is valid

Types

type App

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

App represents the goignore CLI program

func New

func New(stdout, stderr io.Writer, fs afero.Fs) *App

New creates and returns a new App configured with an afero file system and IO streams

func (*App) Help

func (a *App) Help()

Help prints the CLI help text

func (*App) List

func (a *App) List()

List prints the list of valid gitignore targets

func (*App) Run

func (a *App) Run(cwd string, args []string) error

Run represents the entry point to the CLI

func (*App) Version

func (a *App) Version()

Version prints CLI version info

Jump to

Keyboard shortcuts

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