Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rpearce/ature

Temperature conversion CLI tool written in Go
https://github.com/rpearce/ature

celsius-to-fahrenheit celsius-to-kelvin fahrenheit-to-celsius fahrenheit-to-kelvin golang kelvin-to-celsius kelvin-to-fahrenheit temperature temperature-converter

Last synced: about 1 month ago
JSON representation

Temperature conversion CLI tool written in Go

Awesome Lists containing this project

README

        

# ature

Temperature conversion CLI tool.

_This is a tool for me to learn Go, so you probably shouldn't use this._

## Example

```
λ ature ctof 16
60.8

λ ature ktof 273.15
32

λ ature ktof 273.15 | xargs ature ftoc | xargs ature ctof
32

λ ature ftoc -- -10
-23.333333333333336
```

Note that because of unix patterns, if you provide a negative number, you must
first signify the end of command/flag arguments with `--` and then provide the
negative value.

## All commands

```
λ ature -h
Convert temperature values

Usage:
ature [command]

Available Commands:
completion Generate the autocompletion script for the specified shell
ctof Convert Celsius to Fahrenheit
ctok Convert Celsius to Kelvin
ftoc Convert Fahrenheit to Celsius
ftok Convert Fahrenheit to Kelvin
help Help about any command
ktoc Convert Kelvin to Celsius
ktof Convert Kelvin to Fahrenheit

Flags:
-h, --help help for ature

Use "ature [command] --help" for more information about a command.
```