github :: GithubWallet :: show_status
# Show wallet status in console
fun show_status(no_color: nullable Bool) do
no_color = no_color or else false
if tokens.is_empty then
print "Wallet is empty"
return
end
print "Wallet ({tokens.length} tokens):"
for token in tokens do
var status
if check_token(token) then
status = if no_color then "OK" else "OK".green
else
status = if no_color then "KO" else "KO".red
end
print " * [{status}] {token}"
end
end
lib/github/wallet.nit:154,2--172,4