Popularity
4.8
Stable
Activity
0.0
Declining
165
4
17
Programming language: Go
License: MIT License
Tags:
Command Line
Standard CLI
Latest version: v1.0.4
clîr alternatives and similar packages
Based on the "Standard CLI" category.
Alternatively, view clîr alternatives based on common mentions on social networks and blogs.
-
urfave/cli
A simple, fast, and fun package for building command line apps in Go -
survey
A golang library for building interactive and accessible prompts with full support for windows and posix terminals. -
pflag
Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags. -
The Platinum Searcher
A code search tool similar to ack and the_silver_searcher(ag). It supports multi platforms and multi encodings. -
readline
Readline is a pure go(golang) implementation for GNU-Readline kind library -
flaggy
Idiomatic Go input parsing with subcommands, positional values, and flags at any position. No required project or package layout and no external dependencies. -
wmenu
An easy to use menu structure for cli applications that prompts users to make choices. -
commandeer
Automatically sets up command line flags based on struct fields and tags. -
flag
Flag is a simple but powerful command line option parsing library for Go support infinite level subcommand -
cmdr
POSIX-compliant command-line UI (CLI) parser and Hierarchical-configuration operations -
wlog
A simple logging interface that supports cross-platform color and concurrency. -
go-getoptions
Fully featured Go (golang) command line option parser with built-in auto-completion support. -
Go-Console
GoConsole: the golang component that eases the creation of beautiful command line interfaces. -
command-chain
A go library for easy configure and run command chains. Such like pipelining in unix shells. -
argv
A Go library to split command line string as arguments array using the bash syntax.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of clîr or a related project?
Popular Comparisons
README
A Simple and Clear CLI library. Dependency free.
Features
- Nested Subcommands
- Uses the standard library
flag
package - Auto-generated help
- Custom banners
- Hidden Subcommands
- Default Subcommand
- Dependency free
Example
package main
import (
"fmt"
"log"
"github.com/leaanthony/clir"
)
func main() {
// Create new cli
cli := clir.NewCli("Flags", "A simple example", "v0.0.1")
// Name
name := "Anonymous"
cli.StringFlag("name", "Your name", &name)
// Define action for the command
cli.Action(func() error {
fmt.Printf("Hello %s!\n", name)
return nil
})
if err := cli.Run(); err != nil {
fmt.Printf("Error encountered: %v\n", err)
}
}
Generated Help
$ flags --help
Flags v0.0.1 - A simple example
Flags:
-help
Get help on the 'flags' command.
-name string
Your name
Documentation
The main documentation may be found here.
License Status
*Note that all licence references and agreements mentioned in the clîr README section above
are relevant to that project's source code only.