def GetSubGroupHelps(self): return dict( (item.cli_name, usage_text.HelpInfo(help_text=item.short_help, is_hidden=item.IsHidden(), release_track=item.ReleaseTrack())) for item in self.groups.values())
def GetSubGroupHelps(self): return dict( (item.cli_name, usage_text.HelpInfo(help_text=item.short_help, is_hidden=item.is_hidden, release_stage=item.release_stage)) for item in self.groups)
def _GetSubHelp(self, is_group=False): """Returns the help dict indexed by command for sub commands or groups.""" return { name: usage_text.HelpInfo(help_text=subcommand['capsule'], is_hidden=subcommand['hidden'], release_track=_GetReleaseTrackFromId( subcommand['release'])) for name, subcommand in self._command['commands'].iteritems() if subcommand['group'] == is_group }
def _GetSubHelp(self, is_group=False): """Returns the help dict indexed by command for sub commands or groups.""" return {name: usage_text.HelpInfo( help_text=subcommand[cli_tree.LOOKUP_CAPSULE], is_hidden=subcommand.get(cli_tree.LOOKUP_IS_HIDDEN, subcommand.get('hidden', False)), release_track=_GetReleaseTrackFromId( subcommand[cli_tree.LOOKUP_RELEASE])) for name, subcommand in six.iteritems(self._command[ cli_tree.LOOKUP_COMMANDS]) if subcommand[cli_tree.LOOKUP_IS_GROUP] == is_group}
def GetSubCommandHelps(self): return dict((item.cli_name, usage_text.HelpInfo(help_text=item.short_help, is_hidden=item.is_hidden, release_stage=item.release_stage)) for item in self.commands.values())