MCPcopy Index your code
hub / github.com/Pradumnasaraf/candy

github.com/Pradumnasaraf/candy @v1.8.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.8.1 ↗ · + Follow
41 symbols 112 edges 27 files 16 documented · 39%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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 built 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.

📚 Documentation

Check out detailed documentation for getting started and using Candy CLI here.

⭐️ Features

  • Convert JSON file to YAML
  • Convert YAML file to JSON
  • Convert Key-Value to JSON
  • Generate Dockerfile for different languages/framework
  • Generate Kubernetes manifests for different objects
  • Encode and Decode a string to base64
  • More coming soon...

📝 Usage

Usage:
  candy [command] [flags]
  candy [command]

Available Commands:
  JTY         Converts a JSON into YAML.
  KVTJ        Converts Key-Value (text) to JSON.
  YTJ         Converts a YAML into JSON.
  docker      Docker related commands. Like generating a Dockerfile for a language.
  encode      It encodes and decodes a string to base64 and vice versa.
  help        Help about any command
  k8s         Kubernetes related commands. Like generating manifest files for kubernetes objects.
  update      Update candy to the latest version
  version     Know the installed version of candy

For detailed usage of each command, visit here

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

Eg candy docker dockerfile --lang go to generate 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.

Core symbols most depended-on inside this repo

checkNilErr
called by 13
cmd/root.go
checkErr
called by 9
cmd/docker/container/delete.go
createManifestFile
called by 8
cmd/kubernetes/kubernetes-manifest.go
createDockerfile
called by 5
cmd/docker/docker-file.go
checkNilErr
called by 4
cmd/kubernetes/kubernetes-manifest.go
checkNilErr
called by 4
cmd/docker/docker-file.go
dockerClient
called by 3
cmd/docker/container/helper.go
runnnigContainerList
called by 3
cmd/docker/container/helper.go

Shape

Function 41

Languages

Go100%

Modules by API surface

tests/keyValueToJson_test.go3 symbols
cmd/root.go3 symbols
cmd/kubernetes/kubernetes-manifest.go3 symbols
cmd/docker/docker-file.go3 symbols
cmd/docker/container/delete.go3 symbols
tests/yamlToJson_test.go2 symbols
tests/root_test.go2 symbols
tests/jsonToYaml_test.go2 symbols
tests/encode_test.go2 symbols
cmd/update.go2 symbols
cmd/docker/container/stop.go2 symbols
cmd/docker/container/rename.go2 symbols

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add candy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page