Crates.io | nabu |
lib.rs | nabu |
version | 0.0.5 |
source | src |
created_at | 2022-03-06 21:01:13.15375 |
updated_at | 2022-03-27 18:23:56.045317 |
description | Keep your work commited and your repository up-to-date! |
homepage | |
repository | https://github.com/jmg-duarte/nabu |
max_upload_size | |
id | 544660 |
size | 63,637 |
Nabu was the patron god of scribes, literacy, and wisdom. He was also the inventor of writing, a divine scribe...
$ cargo install nabu
Nabu's job is to keep your work commited; in other words, it brings Dura to the foreground.
It watches over your files and when it detects changes, Nabu will stage and commit them to your repository.
Watch over a directory.
$ nabu watch <directory>
Watch over a directory and its children (recursively).
$ nabu watch -r <directory>
To push on exit you need to declare the --push-on-exit
flag and an authentication method
(i.e. --ssh-agent
or --ssh-key
).
Using the ssh-agent
method is very simple, you simply need to ensure that the ssh-agent
is running
and declare the --ssh-agent
flag.
Push on exit using the SSH agent.
$ nabu watch --push-on-exit --ssh-agent .
To use the SSH key you need to declare the --ssh-key
pointing to the SSH key associated with your git account.
In the case your passphrase is not empty, you can use the --ssh-passphrase
to declare it.
Push on exit using the provided SSH key (assumes the passphrase is empty).
$ nabu watch --push-on-exit --ssh-key "~/.ssh/id.rsa" .
Push on exit using the provided SSH key & passphrase.
$ nabu watch --push-on-exit --ssh-key "~/.ssh/id.rsa" --ssh-passphrase "very_secret_passphrase" .