[−][src]Function sliderule::upload_component
pub fn upload_component(
target_dir: &Path,
message: String,
url: String,
username: Option<String>,
password: Option<String>
) -> SROutput
Uploads any changes to the project/component to a remote repository.
The remote repository at url
must exist before trying to upload changes to it.
target_dir
must be a valid Sliderule component directory.
messages
should describe the changes that were made since the last upload.
Examples
let temp_dir = std::env::temp_dir(); let output = sliderule::upload_component( &temp_dir.join("newproject"), String::from("Initial commit"), String::from("https://repo.com/user/newproject"), None, None );