https://github.com/marco-souza/pkg
CLI to speed-up software development
https://github.com/marco-souza/pkg
cli go golang pkg tools
Last synced: 10 months ago
JSON representation
CLI to speed-up software development
- Host: GitHub
- URL: https://github.com/marco-souza/pkg
- Owner: marco-souza
- License: gpl-2.0
- Created: 2024-07-31T19:06:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-31T20:01:58.000Z (over 1 year ago)
- Last Synced: 2025-03-27T10:08:03.220Z (11 months ago)
- Topics: cli, go, golang, pkg, tools
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# `pkg`
CLI tool to speed-up software development

[](https://pkg.go.dev/github.com/marco-souza/pkg)
[](https://goreportcard.com/report/github.com/marco-souza/pkg)
## Features
- scaffold a new go module
- encrypt and decrypt files
- manage environment variables
- manage semantic versioning
- use repos as template for a new project (like degit) - `git` is required
## Installation
```bash
go install github.com/marco-souza/pkg@latest
pkg
```
## Usage
```bash
pkg -h
pkg create - scaffold a new go module
# encrypting files
pkg encrypt - encrypt a file
pkg decrypt - decrypt a file
# managing envs
pkg envs del - remove an environment variable
pkg envs get - get an environment variable
pkg envs set - set an environment variable
# managing versions
pkg version - manage semantic versioning
pkg version -f path - bump version in a json file
# using repos as templates
pkg clone / [name] - clone repo as template for a new [name] project
```
## Coming soon
```bash
pkg envs init - create a new environment file
pkg / [name] - close repo as template for a new [name] project (like degit)
```
## References
- [cobra](https://github.com/spf13/cobra)
- [cobra-cli](https://github.com/spf13/cobra-cli)