wadjet

command module
v0.0.0-...-df67a39 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: BSD-2-Clause Imports: 13 Imported by: 0

README

wadjet

Wadjet is an experiment in building Slack bots (and possibly others) in a manner that resembles multi-command CLI apps, using the same tools that one would use for those apps (i.e., the flag package).

To add a command to wadjet, you add a Command function to the Commands map. The Command function must then bind flags to the FlagSet it's given, parse the arguments it's given, and either return a [message][] or write its output to the FlagSet's output. When implementing sub-commands, you could use either the first argument to do a similar command dispatch, a small libary like google/subcommands, or some other library that doesn't presuppose the existence of a terminal.

License

Wadjet is licensed under a two-clause BSD license.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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