Giter Site home page Giter Site logo

boot's People

Contributors

sigurdsvela avatar

Watchers

 avatar  avatar

boot's Issues

Colorize output

Add option if notify to colorise output. Default to true.

Implement validation of symbol input

Syntax would be something like

{
  ...
  "options" : {
    "--my-symbol" : {
      "symbol" : "symbol-id",
      "format" : "id" // <---
    }
  }
  ...
}

Implemented formats should contain

id

\_?[a-zA-Z0-9\-\_]

_Can start with a _, rest must be alpha-numeric or - or __
This would then be used in symbols like --name in the wordpress templates

version

\d+?.\d+?.\d+?(\-\d+)?

Must the three digits, separated by a period, can contain a prepending - followed by at leas one digit

Fix error template error messages

  1. Doing stuff loading text should not prepend the error message
  2. It should say
- try 'boot new --help'
+ try 'boot template the-template'

Fix check for Directory/File

Fix the check when the boot command is ran, that checks if there is a file of that name, an wether or not said file is a file or a directory.

Implement various validates of symbol input to be use in templates

Should allow for writing

template.json

{
  [...]
  "options" : {
    "--symbol" : {
      "symbol" : "symbol-id"
      "format" : "[format]"
      "format-description" : "Must be present if the format is a regex"
    }
  }
  [...]
}

[format] should be the name of a built in format, or a regex, starting with ^ and ending with $. If a regex, a format-description is required. This is to print to the user if (s)he enters an invalid value.

The format description should be written in the format
Must [be/start with/end with/conatin/not contain] [...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.