boundary/api_cli.py
def execute(self):
        """
        Run the steps to execute the CLI
        """

        # Set default arguments from environment variables
        self._get_environment()

        # Call our member function to add command line arguments, child classes that override need
        # to call the ApiCli version first to add standard arguments
        self.add_arguments()

        # Parse the command line arguments
        self._parse_args()

        # Arguments are parsed call back to the instance so that it can extract the command line
        # arguments for its use
        self.get_arguments()

        self.get_api_parameters()
        if self._validate_arguments():
            if self._curl:
                self._curl_output()
            else:
                self._call_api()
                self._handle_results()
        else:
            print(self._message)
def execute(self):
        """
        Run the steps to execute the CLI
        """

        # Set default arguments from environment variables
        self._get_environment()

        # Call our member function to add command line arguments, child classes that override need
        # to call the ApiCli version first to add standard arguments
        self.add_arguments()

        # Parse the command line arguments
        self._parse_args()

        # Arguments are parsed call back to the instance so that it can extract the command line
        # arguments for its use
        self.get_arguments()

        self.get_api_parameters()
        if self._validate_arguments():
            if self._curl:
                self._curl_output()
            else:
                self._call_api()
                self._handle_results()
        else:
            print(self._message)
def execute ( self ) : # Set default arguments from environment variables self . _get_environment ( ) # Call our member function to add command line arguments, child classes that override need # to call the ApiCli version first to add standard arguments self . add_arguments ( ) # Parse the command line arguments self . _parse_args ( ) # Arguments are parsed call back to the instance so that it can extract the command line # arguments for its use self . get_arguments ( ) self . get_api_parameters ( ) if self . _validate_arguments ( ) : if self . _curl : self . _curl_output ( ) else : self . _call_api ( ) self . _handle_results ( ) else : print ( self . _message )
Run the steps to execute the CLI
Run the steps to execute the CLI