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
- Host: GitHub
- URL: https://github.com/pforret/gosh
- Owner: pforret
- License: other
- Created: 2022-12-25T20:06:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T13:17:49.000Z (over 3 years ago)
- Last Synced: 2025-03-03T11:33:58.547Z (over 1 year ago)
- Topics: bash, golang
- Language: Go
- Homepage:
- Size: 18.4 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pforret/gosh

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
```