eclipse-archived / codewind

The official repository of the Eclipse Codewind project
https://codewind.dev
Eclipse Public License 2.0
113 stars 45 forks source link

Templates repos commands are missing fields #847

Closed tetchel closed 4 years ago

tetchel commented 4 years ago

repository_list contents:

[
  {
    "url": "https://raw.githubusercontent.com/kabanero-io/codewind-templates/master/devfiles/index.json",
    "description": "Standard Codewind templates",
    "enabled": true,
    "protected": true,
    "projectStyles": [
      "Codewind"
    ],
    "name": "Default templates"
  },
  {
    "url": "https://github.com/kabanero-io/collections/releases/download/v0.1.2/kabanero-index.json",
    "name": "Kabanero Collections",
    "description": "The default set of templates from Kabanero Collections",
    "enabled": false,
    "protected": true,
    "projectStyles": [
      "Appsody"
    ]
  },
  {
    "name": "Appsody Stacks - appsodyhub",
    "description": "Use Appsody in Codewind to develop applications with sharable technology stacks.",
    "url": "https://github.com/appsody/stacks/releases/latest/download/incubator-index.json",
    "enabled": false,
    "protected": true,
    "projectStyles": [
      "Appsody"
    ]
  }
]

cli output from templates repos list

[
    {
        "description": "Standard Codewind templates",
        "url": "https://raw.githubusercontent.com/kabanero-io/codewind-templates/master/devfiles/index.json",
        "name": "Default templates"
    },
    {
        "description": "The default set of templates from Kabanero Collections",
        "url": "https://github.com/kabanero-io/collections/releases/download/v0.1.2/kabanero-index.json",
        "name": "Kabanero Collections"
    },
    {
        "description": "Use Appsody in Codewind to develop applications with sharable technology stacks.",
        "url": "https://github.com/appsody/stacks/releases/latest/download/incubator-index.json",
        "name": "Appsody Stacks - appsodyhub"
    }
]

enabled, protected, and projectStyles are missing

tetchel commented 4 years ago

at the same time, maybe we could change --URL to --url for consistency with create

tetchel commented 4 years ago

@tobespc

makandre commented 4 years ago

I think this https://github.com/eclipse/codewind-installer/pull/179 would cover what you need

Sample output

        {
                "description": "Use Appsody in Codewind to develop applications with sharable technology stacks.",
                "url": "https://github.com/appsody/stacks/releases/latest/download/incubator-index.json",
                "name": "Appsody Stacks - appsodyhub",
                "id": "appsodyhub",
                "enabled": true,
                "protected": true,
                "projectStyles": [
                        "Appsody"
                ]
        }
tobespc commented 4 years ago

confirmed the output with latest cwctl