Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1013 Bytes

File metadata and controls

51 lines (42 loc) · 1013 Bytes

commandgen

since im lazy, i decided to make this tool to not copypaste imports 200 times.

how to use

you need an command.json which structure should be like this:

{
  "ClassName": {
    "package": "your.package",
    "description": "Your very cool description",
    "options": {
      "veryCoolOption": {
        "names": ["-c", "--cool"],
        "description": "Very cool option",
        "usage-help": false
      },
      "anotherOption": {
        "names": ["-j", "--java"],
        "description": "JAVA",
        "usage-help": true
      }
    },
    "parameters": {
      "veryImportantParameter": {
        "description": "ReallyImportant"
      }
    }
  },
  "AnotherClassName": {
    "package": "another.package",
    "description": "EmptyCommand",
    "options": {},
    "parameters": {}
  }
}

you should have all this fields and if you dont want like, having option then just keep whole section empty

build

as my cli

mvn package

sorry, no graalvm this time