cli

package
v0.0.0-...-703489d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options []commandline.Option //nolint:gochecknoglobals

Options to override the commandline for testing purposes.

Functions

func List

func List(os OS, fl *Flags, prt Printer) error

List lists modules in current project and prints them using Printer.

Types

type App

type App struct{}

App is a modscope commandline application.

func (App) Command

func (a App) Command() *cobra.Command

Command returns a cobra command for the application.

type Flags

type Flags struct {
	DisplayFilepath bool
}

Flags are options for modscope command.

type OS

type OS interface {
	gowork.FileSystem
	gowork.Environment
	Abs(filepath string) string
}

OS represents a virtual operating system.

type Printer

type Printer interface {
	Println(...interface{})
}

Printer is an interface for printing the output.

Jump to

Keyboard shortcuts

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