Skip to content

Add command to initialize a new config #6

Description

@bartveneman

Be able to let Constyle generate a new .constyblerc file based on CSS that is provided. This should make getting started a lot easier.

constyble init style.css
# or
cat style.css | constyble init

Should generate a .constyblerc file in the current working directory based on the css statistics of the passed CSS.

# Generating a custom file path config
constyble init style.css --config='/path/to/constyle.json'
# or
cat style.css | constyble init --config='/path/to/constyle.json'

To be discussed

  • What to do when file cannot be written?
  • What to when file already exists?
  • Should we implement constyble init --help, displaying an init oriented help message?

Idea credit: @jeroen-severein

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions