Skip to content

Instantly share code, notes, and snippets.

@joewalker
Created June 26, 2012 12:42
Show Gist options
  • Save joewalker/2995598 to your computer and use it in GitHub Desktop.
Save joewalker/2995598 to your computer and use it in GitHub Desktop.
Components.utils.import("resource:///modules/devtools/gcli.jsm");
gcli.addCommand({
name: 'foo',
params: [
{
name: 'letters',
type: {
name: 'selection',
data: function() {
return [ 'aaaa', 'bbbb', 'cccc' ];
}
}
}
],
exec: function(args, context) {
return args.letters;
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment