pub async fn api_commands( state: Arc<Mutex<CLIState>>, command: &ApiCommands, ) -> Result<(), OperationOutcomeError>