Sha256: 598a7fe2857029208bcef4b09733bad619ed700a46a45ae64ef0974ce474917a
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
module Pcli module Services module Commands class Logout < Dry::CLI::Command include Depends.on('authenticate', 'api', 'output') desc 'Log out.' def call(*) unless api.token output.puts('You are not logged in.') return end api.token = nil output.puts(Pl.green('Logged out.')) CommandOutput.continue end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pcli-0.1.1 | lib/pcli/services/commands/logout.rb |
pcli-0.1.0 | lib/pcli/services/commands/logout.rb |