Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
30 Days Of Javascript | 36,456 | 2 days ago | 1 | January 25, 2022 | 253 | JavaScript | ||||
30 days of JavaScript programming challenge is a step-by-step guide to learn JavaScript programming language in 30 days. This challenge may take more than 100 days, please just follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw | ||||||||||
Httpie | 27,856 | 1,645 | 42 | 17 days ago | 55 | May 06, 2022 | 146 | bsd-3-clause | Python | |
🥧 HTTPie for Terminal — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. | ||||||||||
Cli | 20,252 | 3,070 | 3,594 | 21 hours ago | 137 | September 11, 2022 | 39 | mit | Go | |
A simple, fast, and fun package for building command line apps in Go | ||||||||||
Fx | 16,283 | 11 | 16 | a month ago | 47 | September 15, 2020 | 22 | mit | Go | |
Terminal JSON viewer | ||||||||||
Yq | 8,751 | 43 | a day ago | 10 | February 06, 2020 | 76 | mit | Go | ||
yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor | ||||||||||
Http Prompt | 8,717 | 7 | 1 | 2 months ago | 24 | March 05, 2021 | 53 | mit | Python | |
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie | ||||||||||
Fq | 8,344 | 17 hours ago | 96 | August 25, 2022 | 43 | other | Go | |||
jq for binary formats - tool, language and decoders for working with binary and text formats | ||||||||||
Miller | 7,790 | 4 days ago | 64 | March 31, 2022 | 93 | other | Go | |||
Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON | ||||||||||
Structured Text Tools | 6,672 | 2 months ago | 15 | |||||||
A list of command line tools for manipulating structured text data | ||||||||||
Visidata | 6,609 | 5 | 5 | 21 hours ago | 48 | December 16, 2021 | 87 | gpl-3.0 | Python | |
A terminal spreadsheet multitool for discovering and arranging data |
Simple, useful and opinionated config loader.
There are many solutions regarding configuration loading in Go. I was looking for a simple loader that is as easy to use and understand as possible. The goal was to load config from 4 places: defaults (in the code), files, environment variables, command-line flags. This library works with all of these sources.
Go version 1.14+
go get github.com/cristalhq/aconfig
type MyConfig struct {
Port int `default:"1111" usage:"just give a number"`
Auth struct {
User string `required:"true"`
Pass string `required:"true"`
}
Pass string `default:"" env:"SECRET" flag:"sec_ret"`
}
var cfg MyConfig
loader := aconfig.LoaderFor(&cfg, aconfig.Config{
// feel free to skip some steps :)
// SkipDefaults: true,
// SkipFiles: true,
// SkipEnv: true,
// SkipFlags: true,
EnvPrefix: "APP",
FlagPrefix: "app",
Files: []string{"/var/opt/myapp/config.json", "ouch.yaml"},
FileDecoders: map[string]aconfig.FileDecoder{
// from `aconfigyaml` submodule
// see submodules in repo for more formats
".yaml": aconfigyaml.New(),
},
})
// IMPORTANT: define your own flags with `flagSet`
flagSet := loader.Flags()
if err := loader.Load(); err != nil {
panic(err)
}
// configuration fields will be loaded from (in order):
//
// 1. defaults set in structure tags (see MyConfig defenition)
// 2. loaded from files `file.json` if not `ouch.yaml` will be used
// 3. from corresponding environment variables with the prefix `APP_`
// 4. command-line flags with the prefix `app.` if they are
Also see examples: examples_test.go.
Integration with spf13/cobra
playground.
See these docs.