Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3824

cfbs init should respect --index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: cfbs
    • Labels:
      None

      Description

      I initalized a cfbs repo and specified a custom index. The cfbs.json was generated without the index.

      [root@hub cfbs]# cfbs --version
      cfbs 0.8.0
      [root@hub cfbs]# cfbs init --index https://gist.github.com/nickanderson/22b896185accc65a387269ce0c93158a/raw/index.json
      Initialized - edit name and description cfbs.json
      To add your first module, type: cfbs add masterfiles
      [root@hub cfbs]# cat cfbs.json 
      { "name": "Example", "description": "Example description", "build": [] }
      

      I expected that the index would be specified in the cfbs.json:

      [root@hub cfbs]# cfbs init --index https://gist.github.com/nickanderson/22b896185accc65a387269ce0c93158a/raw/index.json
      Initialized - edit name and description cfbs.json
      To add your first module, type: cfbs add masterfiles
      [root@hub cfbs]# cat cfbs.json 
      { "index": "https://gist.github.com/nickanderson/22b896185accc65a387269ce0c93158a/raw/index.json", "name": "Example", "description": "Example description", "build": [] }
      
      
      

        Attachments

          Activity

            People

            Assignee:
            craig.comstock Craig Comstock
            Reporter:
            a10042 Nick Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: