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)
- add filtering support for operating systems and languages

2
Cargo.lock generated
View File

@ -1,6 +1,6 @@
[root]
name = "gog-sync"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"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)",

View File

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

View File

@ -212,6 +212,8 @@ impl<'a> Gog<'a> {
fn get_code(&self) -> Result<String, GogError> {
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);
let mut code = String::new();