Module local_config

Module local_config 

Source

Functionsยง

create_new_ship_config_file
Attempts to create a new ship_config.yaml with the barebones yaml inside. Returns None if file already exists.
default_cli_ship_interface_setup
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.
ship_interface_from_config
Opens the yaml file specified by path_to_file and uses the data inside to create a ShipInterface
ship_interface_from_local_config
Opens a local ship_config.yaml file and uses the data inside to create a ShipInterface