Back to godoc.org

Package cli

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package cli implements command line interface for CIPD client.

Its main exported function is GetApplication(...) that takes a bundle with default parameters and returns a *cli.Application configured with this defaults.

There's also Main(...) that does some additional arguments manipulation. It can be used to build a copy of 'cipd' tool with some defaults tweaked.

Index

func GetApplication

func GetApplication(params Parameters) *cli.Application

GetApplication returns cli.Application.

It can be used directly by subcommands.Run(...), or nested into another application.

func Main

func Main(params Parameters, args []string) int

Main runs the CIPD CLI.

type Parameters

type Parameters struct {
	// DefaultAuthOptions provide default values for authentication related
	// options (most notably SecretsDir: a directory with token cache).
	DefaultAuthOptions auth.Options

	// ServiceURL is a backend URL to use by default.
	ServiceURL string
}

Parameters carry default configuration values for a CIPD CLI client.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier