Crates.io | gitlab-ci-validate |
lib.rs | gitlab-ci-validate |
version | 0.1.0 |
source | src |
created_at | 2019-07-23 19:41:09.017614 |
updated_at | 2020-07-09 12:52:19.000293 |
description | Checks if your .gitlab-ci.yml file is valid. |
homepage | |
repository | https://github.com/pradel/gitlab-ci-validate-rust |
max_upload_size | |
id | 151141 |
size | 77,290 |
Checks if your .gitlab-ci.yml file is valid.
I decided to create a simple cli tool to try Rust so this repository is a fork of my nodejs version https://github.com/pradel/gitlab-ci-validate.
$ cargo install gitlab-ci-validate
# To see all the available options
$ gitlab-ci-validate --help
# It will try to find if .gitlab-ci.yml is present on the current folder if no file path is provided
$ gitlab-ci-validate <file-path>
# You can specify your own gitlab host if you need
$ gitlab-ci-validate <file-path> --host https://my-gitlab-url
# You can provide a private token if you need
$ gitlab-ci-validate <file-path> --private-token <my-gitlab-token>
MIT © Léo Pradel