Skip to content

Instantly share code, notes, and snippets.

@alan-null
Created May 13, 2016 23:09
Show Gist options
  • Save alan-null/dd2ac96d614e3eaf219453960c9ebcdb to your computer and use it in GitHub Desktop.
Save alan-null/dd2ac96d614e3eaf219453960c9ebcdb to your computer and use it in GitHub Desktop.
Display all available commands for current context
[].forEach.call(scExtManager.getModule(SitecoreExtensions.Modules.Launcher.LauncherModule).commands.filter(function (c, i, a) {
return c.canExecute();
}), function(c) {
console.log(c.name + " | " + c.description)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment