cli

package
v0.0.0-...-813b421 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(explorer ossexplorer.Explorer, env Environment) int

Types

type CLI

type CLI struct {
	Context
	Repos ReposCmd `cmd help:"Searches/Explores OSS Repos along various axes."`
}

type Context

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

type Environment

type Environment struct {
	Stderr io.Writer
	Stdout io.Writer
	Stdin  io.Reader
}

Environment provides an abstraction around the execution environment

type ReposCmd

type ReposCmd struct {
	Org        string `arg required help:"The organization to explore/search."`
	Sort       string `` /* 131-byte string literal not displayed */
	Order      string `help:"The orientation of which our exploratory results should be sorted (desc|asc). (default=desc)" default:"desc"`
	MaxResults int    `help:"The maximum number of results we'd like to limit our display to. (default=10)" default:"10"`
}

func (*ReposCmd) Run

func (cmd *ReposCmd) Run(ctx *Context) error

Jump to

Keyboard shortcuts

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