mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 13:47:52 +00:00
Add Resin.io ASCII art in login
This commit is contained in:
parent
9b052c9aa5
commit
86cac606e4
@ -82,7 +82,8 @@ limitations under the License.
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
return resin.settings.get('resinUrl').then(function(resinUrl) {
|
return resin.settings.get('resinUrl').then(function(resinUrl) {
|
||||||
console.log("Logging in to " + resinUrl);
|
console.log('______ _ _\n| ___ \\ (_) (_)\n| |_/ /___ ___ _ _ __ _ ___\n| // _ \\/ __| | \'_ \\ | |/ _ \\\n| |\\ \\ __/\\__ \\ | | | |_| | (_) |\n\\_| \\_\\___||___/_|_| |_(_)_|\\___/');
|
||||||
|
console.log("\nLogging in to " + resinUrl);
|
||||||
return login(options);
|
return login(options);
|
||||||
}).then(resin.auth.whoami).tap(function(username) {
|
}).then(resin.auth.whoami).tap(function(username) {
|
||||||
console.info("Successfully logged in as: " + username);
|
console.info("Successfully logged in as: " + username);
|
||||||
|
@ -99,7 +99,16 @@ exports.login =
|
|||||||
return login(options)
|
return login(options)
|
||||||
|
|
||||||
resin.settings.get('resinUrl').then (resinUrl) ->
|
resin.settings.get('resinUrl').then (resinUrl) ->
|
||||||
console.log("Logging in to #{resinUrl}")
|
console.log '''
|
||||||
|
______ _ _
|
||||||
|
| ___ \\ (_) (_)
|
||||||
|
| |_/ /___ ___ _ _ __ _ ___
|
||||||
|
| // _ \\/ __| | '_ \\ | |/ _ \\
|
||||||
|
| |\\ \\ __/\\__ \\ | | | |_| | (_) |
|
||||||
|
\\_| \\_\\___||___/_|_| |_(_)_|\\___/
|
||||||
|
'''
|
||||||
|
|
||||||
|
console.log("\nLogging in to #{resinUrl}")
|
||||||
return login(options)
|
return login(options)
|
||||||
.then(resin.auth.whoami)
|
.then(resin.auth.whoami)
|
||||||
.tap (username) ->
|
.tap (username) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user