Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/upcraftlp/go-utils
collection of command line tools, written in go
https://github.com/upcraftlp/go-utils
go golang linux windows
Last synced: 4 days ago
JSON representation
collection of command line tools, written in go
- Host: GitHub
- URL: https://github.com/upcraftlp/go-utils
- Owner: UpcraftLP
- License: mit
- Created: 2020-12-04T15:47:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-23T22:11:44.000Z (almost 4 years ago)
- Last Synced: 2024-10-11T09:58:46.887Z (28 days ago)
- Topics: go, golang, linux, windows
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# go-utils
Monorepo for a bunch of small command line utilities, written in [go](https://golang.org).
## Building
to build all tools, simply run the `build` script:
in **CMD**:
```cmd
build.cmd 1.0.0
```in **Powershell**:
```powershell
.\build.cmd 1.0.0
```on **Linux**:
###### *Note: This currently still only builds the windows targets, due to npipe not being available for linux.*
```sh
chmod +x build
./build 1.0.0
```You will then find the outputs in the `bin` directory.
## Current Tools:
### datetime
A simple utility to print the current [Unix Time](https://en.wikipedia.org/wiki/Unix_time).
**Usage:**
```cmd
datetime
```### listener
A command line utility that will echo anything it receives on the provided port or named pipe.
**Usage:**
```cmd
# listen on a named pipe
listener \\.\pipe\someNamedPipe
``````cmd
# listen on a port
listener 22
```### time
A utility to record the execution time of another process or command.
**Usage:**
```cmd
# parameters are treated as arguments for the application,
# so this launches 'cmd /c exit 1'
#
# Output: Process finished after 16.9926ms with exit code 1
time cmd /c exit 1
```