{"id":16908267,"url":"https://github.com/jmg-duarte/nabu","last_synced_at":"2025-03-23T17:30:44.325Z","repository":{"id":43052839,"uuid":"465070858","full_name":"jmg-duarte/nabu","owner":"jmg-duarte","description":"Keep your work commited and your repository up-to-date!","archived":false,"fork":false,"pushed_at":"2022-06-17T11:37:33.000Z","size":494,"stargazers_count":3,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T22:09:47.046Z","etag":null,"topics":["git","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmg-duarte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-01T22:02:06.000Z","updated_at":"2022-06-07T22:23:45.000Z","dependencies_parsed_at":"2022-08-27T21:52:02.663Z","dependency_job_id":null,"html_url":"https://github.com/jmg-duarte/nabu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fnabu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fnabu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fnabu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fnabu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmg-duarte","download_url":"https://codeload.github.com/jmg-duarte/nabu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140717,"owners_count":20567431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","rust"],"created_at":"2024-10-13T18:50:49.906Z","updated_at":"2025-03-23T17:30:44.028Z","avatar_url":"https://github.com/jmg-duarte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nabu 𒀭𒀝\n\n\u003e Nabu was the patron god of scribes, literacy, and wisdom.\n\u003e He was also the inventor of writing, a divine scribe...\n\n```bash\n$ cargo install nabu\n```\n\nNabu's job is to keep your work commited;\nin other words, it brings [Dura](https://github.com/tkellogg/dura) to the foreground.\n\nIt watches over your files and when it detects changes,\nNabu will stage and commit them to your repository.\n\n## Get started\n\n*Watch over a directory.*\n```bash\n$ nabu watch \u003cdirectory\u003e\n```\n\n*Watch over a directory and its children (recursively).*\n```bash\n$ nabu watch -r \u003cdirectory\u003e\n```\n\n## Push on exit\n\nTo push on exit you need to declare the `--push-on-exit` flag and an authentication method\n(i.e. `--ssh-agent` or `--ssh-key`).\n\n### Using the SSH agent\n\nUsing the `ssh-agent` method is very simple, you simply need to ensure that the `ssh-agent` is running\nand declare the `--ssh-agent` flag.\n\n*Push on exit using the SSH agent.*\n```bash\n$ nabu watch --push-on-exit --ssh-agent .\n```\n\n### Using your SSH key\n\nTo use the SSH key you need to declare the `--ssh-key` pointing to the SSH key associated with your git account.\nIn the case your passphrase is not empty, you can use the `--ssh-passphrase` to declare it.\n\n*Push on exit using the provided SSH key (assumes the passphrase is empty).*\n```bash\n$ nabu watch --push-on-exit --ssh-key \"~/.ssh/id.rsa\" .\n```\n\n*Push on exit using the provided SSH key \u0026 passphrase.*\n```bash\n$ nabu watch --push-on-exit --ssh-key \"~/.ssh/id.rsa\" --ssh-passphrase \"very_secret_passphrase\" .\n```\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this project by you, as defined in the Apache-2.0 license,\nshall be dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmg-duarte%2Fnabu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmg-duarte%2Fnabu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmg-duarte%2Fnabu/lists"}