ctx

command
v0.0.0-...-9c6ac59 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 7 Imported by: 0

README

Example: ctx

Return an error.

❯ ./ctx sqrt -x -1
negative
exit status 1

Pass context.

❯ ./ctx wait -durationMS 300
context deadline exceeded
exit status 1

Error but exit status is 0, because fcli.Cusage returned by the function set by cli.OnError().

❯ ./ctx
Usage: ctx {sqrt,wait}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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