Skip to content

Pradumnasaraf/candy

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
cmd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Candy

Candy CLI logo

Releases Go Reference

Candy is a CLI tool that provides a basic set of commands to perform tedious tasks such as converting YAML to JSON or JSON to YAML directly from your terminal. It's build with Go, Cobra, Viper, etc

To install the Candy CLI, use the command go install github.com/Pradumnasaraf/candy@latest. Go will automatically install it in your $GOPATH/bin directory, which should be in your $PATH.

Once installed, you can use the candy CLI command. To confirm installation, type candy at the command line.

Note If you are getting an error like command not found: candy, then you need to add $GOPATH/bin to your $PATH environment variable. For that you can refer to this

⭐️ Features

  • Convert JSON file to YAML
  • Convert YAML file to JSON
  • Generate Dockerfile for different languages/framework
  • Generate Kubernetes manifests for different objects
  • More comming soon...

πŸ“ Usage

Usage:
  candy [command]

Available Commands:
  JTY         Converts a JSON into YAML.
  YTJ         Converts a YAML into JSON.
  docker      Docker related commands. Like generating a Dockerfile for a language.
  k8s         Kubernetes related commands. Like generating manifest files for kubernetes objects.

Eg candy JTY --file test.json with convert JSON into YAML and create a output.yaml in you currect directory.

Eg candy docker dockerfile --lang go to genrate a Dockerfile template for go.

eg candy k8s manifest --obj deployment to generate a deployment.yaml file with deployment template.

πŸ“œ License

This project is licensed under the Apache-2.0 license - see the LICENSE file for details

πŸ›‘ Security

If you discover a security vulnerability within this project, please check the SECURITY for more information.

About

Candy is a CLI tool that offers a fundamental set of commands to streamline your DevOps processes.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Languages