Created
June 26, 2012 12:42
-
-
Save joewalker/2995598 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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