Пример #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())