You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Daanikus 80fdcd65de
add missing call to file.Close()
5 years ago
.github use codeowners instead of maintainers 5 years ago
altsrc linter fixes 5 years ago
autocomplete fix zsh autocomplete 5 years ago
docs update to latest docs 5 years ago
testdata Escape single quotes in fish shell completion 5 years ago
.flake8 Allow slightly longer lines in Python scripts 8 years ago
.gitignore get latest changes from master 5 years ago
.travis.yml update test paths 5 years ago
CODE_OF_CONDUCT.md Adjust contribution and maintainer prose per current reality 7 years ago
LICENSE Update license text 8 years ago
README.md add usage documentation links 5 years ago
app.go Avoid panic for missing flag value 5 years ago
app_regression_test.go expand test cases 5 years ago
app_test.go Avoid panic for missing flag value 5 years ago
appveyor.yml Merge remote-tracking branch 'origin/master' into versioned-docs 5 years ago
build.go add missing call to file.Close() 5 years ago
category.go Consider case when sorting strings 7 years ago
cli.go move entire build system to go 5 years ago
command.go trim whitespace 5 years ago
command_test.go Merge branch 'master' into pass-through-regression 5 years ago
context.go Ensure flag is not blank 5 years ago
context_test.go Fix Typo 5 years ago
docs.go Don't output hidden commands for man pages 5 years ago
docs_test.go Don't generate fish completion for hidden commands 5 years ago
errors.go Remove logic that exited even if the error was not an OsExiter 8 years ago
errors_test.go Remove logic that exited even if the error was not an OsExiter 8 years ago
fish.go Don't generate fish completion for hidden commands 5 years ago
fish_test.go Add fish shell completion support 5 years ago
flag.go fix typo in flag.go docstring 5 years ago
flag_bool.go Remove Flag Generation 5 years ago
flag_bool_t.go Remove Flag Generation 5 years ago
flag_duration.go Remove Flag Generation 5 years ago
flag_float64.go Remove Flag Generation 5 years ago
flag_generic.go Remove Flag Generation 5 years ago
flag_int.go Remove Flag Generation 5 years ago
flag_int64.go Remove Flag Generation 5 years ago
flag_int64_slice.go Remove Flag Generation 5 years ago
flag_int_slice.go Remove Flag Generation 5 years ago
flag_string.go Remove Flag Generation 5 years ago
flag_string_slice.go Remove Flag Generation 5 years ago
flag_test.go linter fixes 5 years ago
flag_uint.go Remove Flag Generation 5 years ago
flag_uint64.go Remove Flag Generation 5 years ago
funcs.go fix FilePath documentation in README.md 7 years ago
go.mod Bump minimum supported version of Go to 1.11 5 years ago
go.sum Add support for Go 1.13 5 years ago
help.go Make app help behavior consistent with commands 5 years ago
help_test.go Make app help behavior consistent with commands 5 years ago
helpers_test.go Revising/adding tests that assert order of operations inside App.Run 9 years ago
helpers_unix_test.go Add windows implementation of Clearenv for tests 8 years ago
helpers_windows_test.go Add windows implementation of Clearenv for tests 8 years ago
parse.go Ensure infinite loop cannot occur in parsing 5 years ago
sort.go Consider case when sorting strings 7 years ago
sort_test.go Consider case when sorting strings 7 years ago
template.go Add fish shell completion support 5 years ago

README.md

cli

Build Status Windows Build Status

GoDoc codebeat Go Report Card codecov

cli is a simple, fast, and fun package for building command line apps in Go. The goal is to enable developers to write fast and distributable command line applications in an expressive way.

Usage Documentation

Usage documentation exists for each major version

Installation

Make sure you have a working Go environment. Go version 1.10+ is supported. See the install instructions for Go.

GOPATH

Make sure your PATH includes the $GOPATH/bin directory so your commands can be easily used:

export PATH=$PATH:$GOPATH/bin

Supported platforms

cli is tested against multiple versions of Go on Linux, and against the latest released version of Go on OS X and Windows. For full details, see ./.travis.yml and ./appveyor.yml.

Using v1 releases

$ go get github.com/urfave/cli
...
import (
  "github.com/urfave/cli"
)
...

Using v2 releases

Warning: v2 is in a pre-release state.

$ go get github.com/urfave/cli.v2
...
import (
  "github.com/urfave/cli.v2" // imports as package "cli"
)
...