Skip to main content

init_client

Function init_client 

Source
pub fn init_client() -> Result<Box<dyn RestApiClient + Send + Sync>, RestClientError>
Expand description

Instantiate an implementation of RestApiClient based on the environment.

This will fallback to an instance of LocalClient if

  • the GITHUB_ACTIONS environment variable is not set