Skip to content

Change init command to create a usable example file #56

@holmboe

Description

@holmboe

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: [email protected]:dynamist/subgit.git
    revision:
      branch: master

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions