-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,36 @@ | ||
# UUID CLI | ||
# UUID CLI | ||
|
||
A simple tool to generate uuid with a cli command | ||
A simple tool to generate uuid with a cli command. | ||
|
||
Generates a random (Version 4) UUID and prints to stdout. | ||
|
||
Underlying library: https://pkg.go.dev/github.com/google/uuid | ||
|
||
## Installation | ||
|
||
_TODO_ | ||
**1. Manually build** | ||
|
||
1. Clone the repo | ||
|
||
```git clone https://github.com/siripr4/uuid-cli.git``` | ||
|
||
2. cd to the directory | ||
|
||
```cd uuid-cli``` | ||
|
||
3. Build the go file | ||
|
||
```go build . -o uuid``` | ||
|
||
4. Run the binary | ||
|
||
```./uuid``` | ||
|
||
5. Optionally, add the binary to your PATH to generate uuid from anywhere. Symlink the binary to `usr/local/bin` | ||
|
||
```sudo ln -s <absolute-path-to-binary> /usr/local/bin/uuid``` | ||
|
||
**2. Install via homebrew** | ||
|
||
_TODO_ | ||
|