cec version isgreater
Compare the two versions, succeed when the first is greater than the second
Check the passed strings to validate that they respects semantic versioning rules and then compare them.
Under the hood, it tries to parse the version strings using the hashicorp/go-version library and then compare the 2 resulting version structs.
The command prints an error and exits with status 1 if: - one of the 2 strings is not a valid semantic version, - the first version is not strictly greater than the second.
Otherwise, the command simply exits with status 0.
This exits with status 1: cec version isgreater 2.0.6-dev.20191205 2.0.6
cec version isgreater [flags]
-h, --help help for isgreater
Options inherited from parent commands
--config string Location of Cells Client's config files, usually /home/bsinou/.config/pydio/cells-client --login string The user login, for Client auth only --no_cache Force token refresh at each call. This might slow down scripts with many calls --password string The user password, for Client auth only --skip_keyring Explicitly tell the tool to *NOT* try to use a keyring, even if present. Warning: sensitive information will be stored in clear text --skip_verify By default the Cells Client verifies the validity of TLS certificates for each communication. This option skips TLS certificate verification -t, --token string A valid Personal Access Token -u, --url string The full URL of the target server
- cec version - Show Cells Client version information