Command Line Interface for mananging programming projects with different frameworks and languages
git clone https://github.com/Jon1105/pmag
Fill in config.yaml
with the appropriate format. Example:
languages:
-
name: 'Go'
acros: ['go', 'golang']
path: 'C:/Users/username/Documents/Programming/Go/src/github.com/Jon1105'
templatePath: 'templates/Go'
initialCommand: 'go mod init github.com/Jon1105/{{projectName}}'
defaultEditorPath: 'C:/Users/username/AppData/Local/Programs/Microsoft VS Code/bin/code
More info about inidividual configuration options in config.yaml
- Go to github settings and sign in
- Generate a new token and select "repo" to allow repository creation access
- Copy generated token into
config.yaml
's ghKey variable
- Run
go build
and add the created executable to your path so you can access it from any directory in the terminal - If
%GOBIN%
is already in your path, you can simply rungo install
which will build the project and move the executable to%GOBIN%
Thanks to the go:embed package, the created executable can be run standalone, so the source, text and configuration files are no longer needed on the machine running the tool. Note: this does not include the templates for each language. These must be remain on the machine for proper functionality of the template feature You can therefore remove the pmag project from your computer while keeping the executable installed, which will continue to function as expected
Usage:
pmag create language project name [flags...]
-r, -readme Toggle creation a README.md file
-v, -vcs Toggle initialization a version control system (git, github)
-p Toggle visibility of the github repository created (if created)
Usage: pmag open [language] [project name]
Usage: pmag vcs [project name]
Usage: pmag help [command]
Package to manage reading and accessing data from config.yaml
Package for cobra package
Package for multiple use functions throughout the application
Package for managing version control systems