dynamist / subgit

Sub-git repo handler
Apache License 2.0
0 stars 0 forks source link

Change init command to create a usable example file #56

Open holmboe opened 1 year ago

holmboe commented 1 year ago

When running the subgit init command you are rewarded with an empty config file. This doesn't help the user of subgit in any usable way. We should look to vagrant init as a good example on how to do this.

Current behaviour:

$ subgit init
$ cat .subgit.yml
repos: {}

Expected behaviour:

$ subgit init
$ cat .subgit.yml
repos:
  subgit:
    url: git@github.com:dynamist/subgit.git
    revision:
      branch: master

We could even include comments for each key (url, revision, etc).