<commit_before>module VagrantPlugins
  module DockerExec
    class Command < Vagrant.plugin("2", "command")
      def execute
        puts "docker-shell"
        return 0
      end
    end
  end
end<commit_msg>added vagrant-shell command<commit_after>module VagrantPlugins
  module DockerExec
    class Command < Vagrant.plugin("2", "command")
      def execute

        options = {}
        options[:detach]  = false
        options[:pty]     = true
        options[:stdin]   = true

        opts = OptionParser.new do |o|
          o.banner = "Usage: vagrant docker-shell [container]"
        end

        # Parse the options
        argv = parse_options(opts)
        return if !argv

        target_opts = { provider: :docker }
        target_opts[:single_target] = options[:pty]

        with_target_vms(argv, target_opts) do |machine|
          command = ["docker", "exec", "-it"]
          command << machine.name.to_s
          command << "bash"
          
          output = ""
          machine.provider.driver.execute(*command, options) do |type, data|
            output += data
          end
        end

        return 0
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.09630266552020636, 'fraction_numerical': 0.0034393809114359416, 'mean_word_length': 1.881188118811881, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6426001', 'n_tokens_mistral': 343, 'n_tokens_neox': 328, 'n_words': 87}