An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# `pkg`

CLI tool to speed-up software development

![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)
[![Go Reference](https://pkg.go.dev/badge/github.com/marco-souza/pkg.svg)](https://pkg.go.dev/github.com/marco-souza/pkg)
[![Go Report Card](https://goreportcard.com/badge/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)