setup-contribution

command module
v0.0.0-...-ad3627d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

README

setup-contribution

Linux CLI Application generating contributions guidelines.

I do not plan to make this application compatible with other systems. If you want to do it, develop it on your own, open a PR and I'll gladly merge it.

Usage

This CLI Application is very simple.

  1. Use setup-contribution to set up your default configuration
  2. Use setup-contribution string to set up your {string} configuration
  3. Use setup-contriubtion install to install the data

The data is stored in ~/.local/share/setup-contribution/ and the config file is located at ~/.local/share/setup-contribution/config.toml.

To create a new configuration, just copy the ~/.local/share/setup-contribution/default/ to ~/.local/share/setup-contribution/{string}/ where string is the name of your new configuration. ⚠ not working with space!

The default config file is:

DisabledFolders = [""]

[Root]
CodeOfConduct = "CODE_OF_CONDUCT"
Contributing = "CONTRIBUTING"
SecurityPolicy = "SECURITY"

[Github]
CodeOwners = "CODEOWNERS"
PullRequestTemplate = "templates/pull_request_template"

[Github.Templates]
BugReport = "templates/bug_report"
FeatureRequest = "templates/feature_request"
OtherIssues = "templates/other_issues"
Config = "templates/config"

If you want to disable a configuration, just add its name in the list DisabledFolders.

Every option excepted DisabledFolders is the name of your file. For example, if I want to rename the file CODE_OF_CONDUCT.md by fooBar.md, I must change CODE_OF_CONDUCT to fooBar for the option CodeOfConduct inside Root. ⚠ You cannot edit the extension of the files!

Technologies

  • Go 1.19
  • pelletier/go-toml v2

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL