aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.lock
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.lock
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.lock')
-rw-r--r--Cargo.lock16
1 files changed, 16 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 43534f6..ff0c5d0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -212,6 +212,15 @@ dependencies = [
]
[[package]]
+name = "getopts"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5"
+dependencies = [
+ "unicode-width",
+]
+
+[[package]]
name = "getrandom"
version = "0.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -276,6 +285,7 @@ dependencies = [
name = "github-suggestion-cli"
version = "0.0.1"
dependencies = [
+ "getopts",
"git2",
"github-suggestion",
"thiserror",
@@ -1245,6 +1255,12 @@ dependencies = [
]
[[package]]
+name = "unicode-width"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
+
+[[package]]
name = "unicode-xid"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"