class Aocli::Commands::SetToken
TODO: Convert to active interaction
Public Class Methods
run()
click to toggle source
# File lib/aocli/commands/set_token.rb, line 4 def run file_path = Aocli::Values::Token::TOKEN_PATH prompt = TTY::Prompt.new token = prompt.ask("Enter your advent of code session token:") File.write(file_path, token) end