示例#1
0
 def _print_file_completions(self, param_num, argv):
     if param_num < 3:
         self._print_entity_completions(param_num, argv)
     elif len(argv) > 2 and param_num == 3:
         completions.print_identifiers(self._client.get_host(argv[0], argv[1], argv[2]).applications())
     elif len(argv) > 3 and param_num == 4:
         completions.print_identifiers(self._client.get_application(argv[0], argv[3]).files())
示例#2
0
 def _print_file_completions(self, param_num, argv):
     if param_num < 3:
         self._print_entity_completions(param_num, argv)
     elif len(argv) > 2 and param_num == 3:
         completions.print_identifiers(self._client.get_host(argv[0], argv[1], argv[2]).applications())
     elif len(argv) > 3 and param_num == 4:
         completions.print_identifiers(self._client.get_application(argv[0], argv[3]).files())
示例#3
0
 def _print_purchase_completions(self, param_num, argv):
     if param_num == 0:
         completions.print_identifiers(
             self.get_collection(argv),
             parameters=self._get_filter_parameters())
     elif param_num == 1:
         completions.print_identifiers(self._client.organizations())
示例#4
0
 def _print_collection_completions(self, param_num, argv):
     if param_num == 0:
         completions.print_identifiers(self._client.organizations())
     elif len(argv) > 0 and param_num == 1:
         completions.print_identifiers(self._client.environments(argv[0]))
     elif len(argv) > 1 and param_num == 2:
         completions.print_identifiers(self._client.hosts(argv[0], argv[1]))
示例#5
0
 def _print_collection_completions(self, param_num, argv):
     if param_num == 0:
         completions.print_identifiers(self._client.organizations())
     elif len(argv) > 0 and param_num == 1:
         completions.print_identifiers(self._client.environments(argv[0]))
     elif len(argv) > 1 and param_num == 2:
         completions.print_identifiers(self._client.hosts(argv[0], argv[1]))
示例#6
0
 def _print_entity_completions(self, param_num, argv):
     if param_num < 2:
         self._print_collection_completions(param_num, argv)
     elif len(argv) > 1 and param_num == 2:
         completions.print_identifiers(self.get_collection(argv))
示例#7
0
 def _print_entity_completions(self, param_num, argv):
     if param_num < 2:
         self._print_collection_completions(param_num, argv)
     elif len(argv) > 1 and param_num == 2:
         completions.print_identifiers(self.get_collection(argv))
示例#8
0
 def _print_purchase_completions(self, param_num, argv):
     if param_num == 0:
         completions.print_identifiers(self.get_collection(argv), parameters = self._get_filter_parameters())
     elif param_num == 1:
         completions.print_identifiers(self._client.organizations())
示例#9
0
 def _print_entity_completions(self, param_num, argv):
     if param_num == 0:
         completions.print_identifiers(self.get_collection(argv), parameters = self._get_filter_parameters())
示例#10
0
 def _print_entity_completions(self, param_num, argv):
     if param_num == 0:
         completions.print_identifiers(
             self.get_collection(argv),
             parameters=self._get_filter_parameters())