aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2020-08-01 19:55:55 +0200
committerTeddy Wing2020-08-01 19:55:55 +0200
commit58b81567354cf6c0bd3623e86deb7b6609b1f3be (patch)
tree72727284795a09add11df05afe11827cb641e64a /Cargo.toml
parent0addf6814485c98c5a9569633f6c4ca4e71038ed (diff)
downloadgit-suggestion-58b81567354cf6c0bd3623e86deb7b6609b1f3be.tar.bz2
Get config
We need the following values in order to build a `Client`: * GitHub token * Repo owner * Repo name Get the token from a command-line argument, or else the Git config, or else an environment variable. Get the repo identifiers from the repo's remote URL. Use the remote specified as a command-line argument, otherwise get it from the Git config, or else default to "origin". TODO: Only try to get the owner-name pair from the remote if a comment ID was given, not if a URL argument was passed.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 355fd52..cd03ae8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,6 +4,7 @@ version = "0.0.1"
edition = "2018"
[dependencies]
+getopts = "0.2.21"
git2 = "0.13.8"
thiserror = "1.0.20"
url = "2.1.1"