Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add config command #7

Open
sujaykumarh opened this issue Feb 14, 2022 · 1 comment
Open

add config command #7

sujaykumarh opened this issue Feb 14, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@sujaykumarh
Copy link
Owner

sujaykumarh commented Feb 14, 2022

config for start

  • use config relative to path if set by default instead of using --profile option and --profile to override config instead
  • config to be separated in sections relating to respective commands by profiles
  • config to be in JSON format
@sujaykumarh sujaykumarh added this to the v0.1.0 milestone Feb 14, 2022
@sujaykumarh sujaykumarh added the enhancement New feature or request label Feb 14, 2022
@sujaykumarh sujaykumarh changed the title add config command add config command Feb 14, 2022
@sujaykumarh
Copy link
Owner Author

example config

{
  "global": {
    "default_profile": "personal",
    "command": {
      "git": {
        "init.defaultbranch": "main",
        "gpg.program": "/usr/bin/gpg",
        "pull.rebase": "false",
        "pull.ff": "only",
        "commit.gpgsign": "true",
        "core.editor": "nano",
        "user": {
          "name": "Jon Doe",
          "email": "jondoe@example.com"
        },
        "signingkey": "XXXXXXXXXXXMy"
      }
    }
  },
  "profile": {
    "work": {
      "path": "/path/to/work/dir",
      "command": {
        "git": {
          "user": {
            "name": "Jonny Doe",
            "email": "jonny@work.com"
          },
          "commit.gpgsign": "true",
          "signingkey": "XXXXXXXXXXXWork"
        }
      }
    },
    "personal": {
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

1 participant