| Crates.io | extract-repo-url |
| lib.rs | extract-repo-url |
| version | 1.0.1 |
| created_at | 2018-10-16 07:32:20.201811+00 |
| updated_at | 2018-10-16 07:37:13.597734+00 |
| description | Small CLI tool to extract repository URL from text (from clipboard by default) |
| homepage | https://github.com/rhysd/extract-repo-url#readme |
| repository | https://github.com/rhysd/extract-repo-url |
| max_upload_size | |
| id | 90925 |
| size | 17,816 |
extract-repo-urlOutputs a repository URL extracted from clipboard text.
$ extract-repo-url # From clipboard by default
https://github.com/foo/bar
$ extract-repo-url 'Repository https://github.com/foo/bar is awesome' # Can receive text as 1st param
https://github.com/foo/bar
It can also detect
git@github.com:foo/bar.git -> https://github.com/foo/bar)https://foo.github.io/bar/tree/master/tests/data -> https://github.com/foo/bar)https://foo.github.io/bar/ -> https://github.com/foo/bar)foo bar https://bitbucket.org/foo/bar -> https://bitbucket.org/foo/bar)foo bar https://gitlab.com/foo/bar -> https://gitlab.com/foo/bar)You can add more hosts with $EXTRACT_REPO_URL_SERVICE_HOSTS environment variable.
Please try --help option to see more details.
With Git:
$ git clone `extract-repo-url`
With open command (on macOS):
$ open `extract-repo-url`
How to run test:
$ RUST_TEST_THREADS=1 cargo test