We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f23c039 commit 7392e7bCopy full SHA for 7392e7b
src/Gdrive_Command.php
@@ -90,14 +90,15 @@ function auth($_, $assoc)
90
WP_CLI_Helper::pl_wait_start();
91
$auth = WP_CLI_Google_Drive::auth();
92
if ($auth['status'] === true and ! isset($assoc['force'])) {
93
+ // Check User Token in GDrive
94
$user_info = WP_CLI_Google_Drive::get_user_info_by_access_token($auth['access_token']);
95
+ WP_CLI_Helper::pl_wait_end();
96
if ( ! isset($user_info['error'])) {
- WP_CLI_Helper::pl_wait_end();
97
WP_CLI::line("Name: " . $user_info['name']);
98
WP_CLI::line("Email: " . $user_info['email']);
99
WP_CLI::line("Locale: " . $user_info['locale']);
100
+ exit;
101
}
- exit;
102
103
104
//Define STDIN
0 commit comments