add instructions for getting the code if there is no token

This commit is contained in:
Sebastian Hugentobler 2017-03-21 17:23:49 +01:00
parent d6dc224a9b
commit 3a07192101
4 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,6 @@
## 0.2.1 (2017-03-21)
- add instructions for getting the code if there is no token
## 0.2.0 (2017-03-21) ## 0.2.0 (2017-03-21)
- add filtering support for operating systems and languages - add filtering support for operating systems and languages

2
Cargo.lock generated
View File

@ -1,6 +1,6 @@
[root] [root]
name = "gog-sync" name = "gog-sync"
version = "0.1.0" version = "0.2.0"
dependencies = [ dependencies = [
"chrono 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.21.1 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.21.1 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "gog-sync" name = "gog-sync"
version = "0.2.0" version = "0.2.1"
authors = ["Sebastian Hugentobler <sebastian@vanwa.ch>"] authors = ["Sebastian Hugentobler <sebastian@vanwa.ch>"]
description = "Synchronizes a GOG library with a local folder." description = "Synchronizes a GOG library with a local folder."
repository = "https://gitlab.com/thallian/gog-sync" repository = "https://gitlab.com/thallian/gog-sync"
@ -8,6 +8,8 @@ readme = "README.md"
keywords = ["gog", "sync", "cli"] keywords = ["gog", "sync", "cli"]
categories = ["command-line-utilities"] categories = ["command-line-utilities"]
license = "MPL-2.0" license = "MPL-2.0"
[badges]
gitlab = { repository = "thallian/gog-sync", branch = "master" } gitlab = { repository = "thallian/gog-sync", branch = "master" }
[dependencies] [dependencies]

View File

@ -212,6 +212,8 @@ impl<'a> Gog<'a> {
fn get_code(&self) -> Result<String, GogError> { fn get_code(&self) -> Result<String, GogError> {
let auth_uri = self.auth_uri(self.client_id.as_str(), self.redirect_uri.as_str()); let auth_uri = self.auth_uri(self.client_id.as_str(), self.redirect_uri.as_str());
println!("Open the following url in a browser, login to your account and paste the \
resulting code parameter.");
println!("{}", auth_uri); println!("{}", auth_uri);
let mut code = String::new(); let mut code = String::new();