Skip to content

Validate localizely.yml file #4

@trenslow

Description

@trenslow

Hi maintainers,

First off, thanks for the handy CLI tool to interact with Localizely.

localizely-cli -v
localizely-cli version 1.0.8

I would like to request a feature which would add the ability to validate the localizely.yml config file. It would check that all the required fields are set. The output wouldn't need to be so complex, just a simple message like when validating a Prometheus config file:

localizely-cli validate localizely.yml # valid file
Checking localizely.yml
 SUCCESS: localizely.yml is valid localizely-cli config file syntax

localizely-cli validate localizely.yml # invalid file
Checking localizely.yml
 FAILED: required field upload.files missing

On the current version, if you run localizely-cli init, the command simply checks for the existence of the localizely.yml file, but doesn't check if the file is valid. In this case, it would be great if the user is informed and then asked if they want to run localizely-cli init to produce a valid file. This could also be the workflow for other commands like pull which require a valid config file.

Thanks for your consideration on this request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions