<commit_before>module Stax
  class Cli < Base
    include Awful::Short

    desc 'version', 'show version'
    def version
      puts VERSION
    end

    desc 'ls', 'list stacks for this branch'
    def ls(regex = nil)
      cf(:ls, [regex || stack_prefix].compact, long: true)
    end
  end
end<commit_msg>use new cfn client for ls task<commit_after>module Stax
  class Cli < Base
    # include Awful::Short
    include Aws

    desc 'version', 'show version'
    def version
      puts VERSION
    end

    desc 'ls', 'list stacks for this branch'
    def ls
      print_table Cfn.stacks.select { |s|
        s.stack_name.start_with?(branch_name)
      }.map { |s|
        [s.stack_name, s.creation_time, color(s.stack_status, Cfn::COLORS), s.template_description]
      }
    end

  end
end
{'fraction_non_alphanumeric': 0.09697732997481108, 'fraction_numerical': 0.0, 'mean_word_length': 2.5650224215246635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4390867', 'n_tokens_mistral': 273, 'n_tokens_neox': 262, 'n_words': 80}