little-pswd-mgr

command module
v0.0.0-...-4b792ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 7 Imported by: 0

README ΒΆ

example gif used asciinema.org and asciinema/agg

Installation

  1. download latest binary from realises
  2. to make tokens accessible from anywhere type:
$ # rename executable you downloaded to "tokens"
$ mv tokens-linux-amd64 tokens # example
$ chmod 777 tokens
$ echo -e "\n$(printf 'PATH=\"$PATH:%s\"' $(pwd))\n" >> ~/.bashrc | source ~/.bashrc

or change $(pwd) to your installation path

pwd pastes your current terminal directory

Custom make
git clone https://github.com/readyyyk/little-pswd-mgr
cd little-pswd-mgr
make
sudo make install

Usage

flags data format description 🚩
<no flag> logs saved data
-h or --help shows help message
-a or --add "data user@host" adds new
-d or --del user@host deletes one
-s or --sort string logs only records that contain provided string

Examples

Log all data
tokens

Output:

DATA  USER  @  HOST           
───────────────────────────────
123   test  @  todooos.live   
qwe    zxc  @  localhost:5541
root  root  @  localhost
Help
tokens -h
tokens --help

Output:

<help output>

Log sorted data
tokens -s localhost
tokens --sort localhost

Output: (but with colors)

DATA  USER  @  HOST           
─────────────────────────────── 
qwe    zxc  @  localhost:5541
root  root  @  localhost
Adding
tokens --add "my_password qwerty@github.com"
tokens -a "my_password qwerty@github.com"

Output:

Added

Deletion
tokens --del raeadyyyk@github.com
tokens -d "raeadyyyk@github.com"

Output:

Deleted

or

Not found record with user: raeadyyyk for host: github.com

TODO

  • refactor everything...
  • add password input
  • encryption for data file

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL