Function urbit_http_api::local_config::default_cli_ship_interface_setup[][src]

pub fn default_cli_ship_interface_setup() -> ShipInterface

A function for CLI apps which first attempts to create a new local ship config file if one does not exist and exits with a helpful message. If a config does exist, then it tries to connect to the Urbit Ship specified in the config. If connection fails then prints a message telling the user to check their local config.