This is a HelloWorld example
Package gh is a library for CLI Go applications to help interface with the gh CLI tool, and the GitHub API. Note that the examples in this package assume gh and git are installed. They do not run in the Go Playground used by pkg.go.dev.
Package gh is a library for CLI Go applications to help interface with the gh CLI tool, and the GitHub API. Note that the examples in this package assume gh and git are installed. They do not run in the Go Playground used by pkg.go.dev.
Package box a.k.a Box CLI Maker is a Highly Customized Terminal Box Creator written in Go. It provides many styles and options to make Boxes. There are 8 inbuilt styles and has Color support via RGB uint, RGB Array of [3]uint and string (Given). Inbuilt Box Styles: Single, Double, Bold, Single Double, Double Single, Round, Hidden and Classic Inbuilt Colors: Black, Blue, Red, Yellow, Green, Cyan, Magenta, White, HiBlack, HiBlue, HiRed, HiYellow, HiGreen, HiCyan, HiMagenta and HiWhite It also has Unicode and Emoji support which works across almost all terminals. Unlike other CLI Makers, Box CLI Maker also supports tab, multi-line strings and string wrapping. Disclaimer: As different terminals have different fonts by default so the right vertical alignment may not be aligned well. You will have to change your font accordingly to make it work. Basic Example: You can specify and change the options by changing the below Config struct. TitlePos can be changed to Inside, Top, Bottom and ContentAlign to be Left, Right and Center. By default TitlePos is Inside, ContentAlign is Left and Style is Single. Manual string wrapping is also allowed via a flag Config.AllowWrapping, by the default padding, is 2*TermWidth/3. String() method can be for the string representation of the Box. True Color is also supported and it can be by providing an array of [3]uint or uint. There might be some terminals not supporting True Color so in this case, it will detect the terminal's max color capacity then will round off True Color to either 4-bit or 8-bit respectively. Title and Content can also be colored by passing the colors needed to the fields box.TitleColor and box.ContentColor respectively. This module also enables True Color and 256 Colors support on Windows Console but you need have at least Windows 10 Version 1511 for 256 colors or Windows 10 Version 1607 for True Color Support. Example of True Color via uint: Note: uint must be in a range of [0x000000, 0xFFFFFF]. Example of True Color via [3]uint: Note: [3]uint array elements must be in a range of [0x0, 0xFF]. Custom Box Style can also be by using box.Box: More info and examples can be found in README.md and examples/ folder
Package gcli is a simple to use command line application and tool library. Contains: cli app, flags parse, interact, progress, data show tools. Source code and other details for the project are available at GitHub: Usage please refer examples and see README
Package simplecli is simple CLI framework.
Package browser provides helpers to open files, readers, and urls in a browser window. The choice of which browser is started is entirely client dependent.
Package gcli is a simple-to-use command line application and tool library. Contains: cli app, flags parse, interact, progress, data show tools. Source code and other details for the project are available at GitHub: Usage please refer examples and see README
Copyright © 2019 Doppler <support@doppler.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package cli provides a minimal framework for creating and organizing command line Go applications. cli is designed to be easy to understand and write, the most simple cli application can be written as follows: Of course this application does not do much, so let's make this an actual application:
Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces. In addition to providing an interface, Cobra simultaneously provides a controller to organize your application code.
Package climax is a handy alternative CLI for Go applications. It looks pretty much exactly like the output of the default `go` command and incorporates some cool features from it. For instance, Climax does support so-called topics (some sort of Wiki entries for CLI). You can also define some annotated use cases of some command that would get displayed in the help section of corresponding command. Climax applications produce this sort of output: