Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sug0/idgen
Generate alphabetical sequential IDs with this hot terminal app!
https://github.com/sug0/idgen
alphabetical generator go golang id sequential terminal utility
Last synced: 5 days ago
JSON representation
Generate alphabetical sequential IDs with this hot terminal app!
- Host: GitHub
- URL: https://github.com/sug0/idgen
- Owner: sug0
- License: mit
- Created: 2018-07-14T02:29:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T05:05:27.000Z (over 4 years ago)
- Last Synced: 2023-03-02T17:32:37.370Z (over 1 year ago)
- Topics: alphabetical, generator, go, golang, id, sequential, terminal, utility
- Language: Go
- Size: 1.39 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
`idgen` is a command line tool that allows you to generate
alphabetical sequential IDs, for whatever applications
may suit you (for instance, to generate ids for a static
file http server of some sort).# Install
```
$ go get github.com/sugoiuguu/idgen
```# Usage
```
$ idgen -h
Usage of idgen:
-f string
delete the specified key
-k string
the key of the id
-p string
the dir to save the ids in
```## Example
```
$ alias idgen="idgen -p ~/.idgen"
$ id=$(idgen -k files)
$ echo wow it works > /var/www/static/$id.txt
.
.
.
$ idgen -k files -f a # frees the id 'a'
$ id=$(idgen -k files) # returns 'a' in $id
```