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

https://github.com/pforret/gosh

Simple Golang toolkit to use in bash scripts
https://github.com/pforret/gosh

bash golang

Last synced: about 2 months ago
JSON representation

Simple Golang toolkit to use in bash scripts

Awesome Lists containing this project

README

          

# pforret/gosh

![](assets/gosh.logo.jpg)
Small functions that should have been in bash but aren't, developed in Golang

```
Usage:
gosh [command]

Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
microtime return time in 'epoch' style (seconds since 1 Jan 1970)

Flags:
-h, --help help for gosh
-t, --toggle Help message for toggle

Use "gosh [command] --help" for more information about a command.
```
## subcommands

### gosh ascii
```bash
Convert Unicode text to ASCII characters
> echo 'Îñtérnåtîönàlïsātìõń is $(AWESOME)!!' | gosh ascii
Internationalisation is $(AWESOME)!!

Usage:
gosh ascii [flags]

Flags:
-h, --help help for ascii
```

### gosh microtime

```bash
returns time as an integer or as a float
> gosh microtime
1672080617
> gosh microtime true
1672080617.458

Usage:
gosh microtime [flags]

Flags:
-h, --help help for microtime`
```

### gosh slug
```bash
Convert Unicode text into a slug
> echo 'Îñtérnåtîönàlïsātìõń is $(AWESOME)!!' | bin/gosh-mac slug
internationalisation-is-awesome

Usage:
gosh slug [flags]

Flags:
-h, --help help for slug
```