Skip to content

Instantly share code, notes, and snippets.

@michaelcarruthers
Created August 23, 2012 13:34
Show Gist options
  • Save michaelcarruthers/3436648 to your computer and use it in GitHub Desktop.
Save michaelcarruthers/3436648 to your computer and use it in GitHub Desktop.
Agent DDL
metadata :name => "Users Agent",
:description => "Agent to list users",
:author => "Michael Carruthers",
:license => "GPLv2",
:version => "0.0.1",
:url => 'homepage
:timeout => 20
action "info", :description => "View user information" do
display :always
input :user,
:prompt => 'Username',
:description => 'User to lookup',
:type => :string,
:validation => '^[a-zA-Z\-_\d]+$',
:optional => false,
:maxlength => 20
output :output,
:description => 'Output of user information',
:display_as => 'Output'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment