climate

module
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT

README

climate

A collection of packages for command line apps in Go, with minimal dependencies.

Notes

Only Unix-like systems are supported. Windows support is not planned until I need it.

Packages included

arg

This is a simple option parser with no dependencies outside the Go stdlib. The goal is to have the typical, most common use cases supported, including nested tool commands, and to be compilable with TinyGo.

cfmt

Colour formatting, printf style.

env

At the moment, just the convenience function Get(), which returns the value of an environment variable or a supplied alternative.

paths

Helper to get typical directory paths for configuration data. Basically makes dot-directories in $HOME (most systems) for config directories in $HOME/Library/Application Support (macOS).

str

Currently just an extended strings.Builder which can write out all common variable types, maps and slices with the same function. Also satisfies the io.Writer interface.

Directories

Path Synopsis
cmd
rep

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳