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.

34 lines
860 B

4 years ago
// Package console eases the creation of beautiful and testable command line interfaces.
// The Console package allows you to create command-line commands.
// Your console commands can be used for any recurring task, such as cronjobs, imports, or other batch jobs.
// console application can be written as follows:
//
// //cmd/console/main.go
// func main() {
// console.New().Execute(context.Background())
// }
//
4 years ago
// Then, you can register the commands using Add():
//
// package main
//
// import (
// "context"
4 years ago
//
// "gitoa.ru/go-4devs/console"
// "gitoa.ru/go-4devs/console/example/pkg/command"
// )
4 years ago
//
// func main() {
// console.
// New().
// Add(
// command.Hello(),
// command.Args(),
// command.Hidden(),
// command.Namespace(),
// ).
// Execute(context.Background())
// }
4 years ago
package console