Go API Documentation

github.com/go-task/task/v3/args

No package summary is available.

Package

Files: 1. Third party imports: 2. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Functions

func Get

Get fetches the remaining arguments after CLI parsing and splits them into two groups: the arguments before the double dash (--) and the arguments after the double dash.

Uses: pflag.Args, pflag.CommandLine.

func Parse

Parse parses command line argument: tasks and global variables

Uses: ast.NewVars, ast.Var, strings.Contains.

func ToQuotedString

Uses: strings.Join, syntax.LangBash, syntax.Quote.

Private functions

func splitVar

References: strings.SplitN.


Tests

Files: 1. Third party imports: 1. Imports from organisation: 0. Tests: 1. Benchmarks: 0.

Test functions

TestArgs

References: args.Parse, assert.Equal, ast.NewVars, ast.Var, ast.VarElement, ast.Vars, fmt.Sprintf, testing.T.