# frozen_string_literal: true

require 'arcana/cli/base'

module Arcana
  module CLI
    class Recrypt < Arcana::CLI::Base

      # option ['-o']

      def execute
        to_store = arcana_client.decrypt(material_name)
        arcana_client.encrypt(material_name, data: to_store)

        puts 'Successfully migrated the secret!'
      end
    end
  end
end