gl-env 0.1.0

Bulk-edit Group- and Project-level CI/CD variables in GitLab.
Documentation
1
2
3
4
5
6
7
8
9
use crate::{gitlab::Gitlab, State};

pub fn dump(gitlab: Gitlab, project: &str) {
    let vars = gitlab.list_project_variables(project).unwrap();
    let state = State {
        variables: vars.into(),
    };
    serde_yml::to_writer(std::io::stdout(), &state).expect("Serialize data");
}