<commit_before>metadata    :name        => "Docker Access Agent",
            :description => "Agent to access the Docker API via MCollective",
            :author      => "<NAME> [@aschmidt75]",
            :license     => "Apache 2",
            :version     => "1.0",
            :url         => "http://github.com...",
            :timeout     => 60


action "ps", :description => "Retrieve information about running containers" do

    input :all,
        :description    => "Show all containers, not only running ones",
        :optional       => true,
        :display_as     => "Show All"

    input :limit,
        :description    => "Limit result set",
        :display_as     => "Limit results",
        :optional       => true,
        :type           => :integer

    input :sinceId,
        :prompt     => "Show only containers created since containers with Id",
        :description=> "Show only containers created since containers with Id",
        :display_as => "Since ID",
        :type       => :string,
        :validation => '^[a-fA-F0-9]+$',
        :optional   => true,
        :maxlength  => 12

    input :beforeId,
        :prompt     => "Show only containers created since containers with Id",
        :description=> "Show only containers created before containers with Id",
        :display_as => "Before ID",
        :type       => :string,
        :validation => '^[a-fA-F0-9]+$',
        :optional   => true,
        :maxlength  => 12

    output :containers,
        :description => "Output from API call, map of containers with detail data",
        :display_as  => "Containers"
end

action "inspect", :description => "Inspect container details" do
    display :always

    input :id,
        :description=> "Id",
        :display_as => "Container ID",
        :type       => :string,
        :validation => '^[a-fA-F0-9]+$',
        :optional   => false,
        :maxlength  => 12

    output :details,
        :description    => "Container details as map",
        :display_as   => "Details"
end

action "diff", :description => "Show container changes" do
    display :always

    input :id,
        :description=> "Id",
        :display_as => "Container ID",
        :type       => :string,
        :validation => '^[a-fA-F0-9]+$',
        :optional   => false,
        :maxlength  => 12

    output :changes,
        :description    => "Container changes as map",
        :display_as     => "Changes"
end

action "start", :description => "Start a previously stopped container" do
    display :always

    input :id,
        :description=> "Id",
        :prompt     => "Container ID",
        :display_as => "Container ID",<commit_msg>Add more prompts<commit_after>metadata    :name        => "Docker Access Agent",
            :description => "Agent to access the Docker API via MCollective",
            :author      => "<NAME> [@aschmidt75]",
            :license     => "Apache 2",
            :version     => "1.0",
            :url         => "http://github.com...",
            :timeout     => 60


action "ps", :description => "Retrieve information about running containers" do

    input :all,
        :description    => "Show all containers, not only running ones",
        :optional       => true,
        :display_as     => "Show All",
        :prompt         => "Show All"

    input :limit,
        :description    => "Limit result set",
        :prompt         => "Limit results",
        :display_as     => "Limit results",
        :optional       => true,
        :type           => :integer

    input :sinceId,
        :prompt         => "Show only containers created since containers with Id",
        :description    => "Show only containers created since containers with Id",
        :display_as     => "Since ID",
        :type           => :string,
        :validation     => '^[a-fA-F0-9]+$',
        :optional       => true,
        :maxlength      => 12

    input :beforeId,
        :prompt         => "Show only containers created since containers with Id",
        :description    => "Show only containers created before containers with Id",
        :display_as     => "Before ID",
        :type           => :string,
        :validation     => '^[a-fA-F0-9]+$',
        :optional       => true,
        :maxlength      => 12

    output :containers,
        :description    => "Output from API call, map of containers with detail data",
        :display_as     => "Containers"
end

action "inspect", :description => "Inspect container details" do
    display :always

    input :id,
        :description    => "Id",
        :display_as     => "Container ID",
        :type           => :string,
        :validation     => '^[a-fA-F0-9]+$',
        :optional       => false,
        :maxlength      => 12

    output :details,
        :description    => "Container details as map",
        :display_as     => "Details"
end

action "diff", :description => "Show container changes" do
    display :always

    input :id,
        :description    => "Id",
        :prompt         => "Container ID",
        :display_as     => "Container ID",
        :type           => :string,
        :validation     => '^[a-fA-F0-9]+$',
        :optional       => false,
        :maxlength      => 12

    output :changes,
        :description    => "Container changes as map",
        :display_as     => "Changes"
end

action "start", :description => "Start a previously stopped container" do
    display :always

    input :id,
        :description=> "Id",
        :prompt     => "Container ID",
        :display_as => "Container ID",
{'fraction_non_alphanumeric': 0.13285586392121754, 'fraction_numerical': 0.008236347358997314, 'mean_word_length': 1.8197879858657244, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 114, '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': '2079084', 'n_tokens_mistral': 1562, 'n_tokens_neox': 1493, 'n_words': 470}