{"id":15645043,"url":"https://github.com/pradumnasaraf/candy","last_synced_at":"2025-03-17T07:12:28.170Z","repository":{"id":142544798,"uuid":"613569427","full_name":"Pradumnasaraf/candy","owner":"Pradumnasaraf","description":"Candy is a CLI tool that offers a fundamental set of commands to streamline your DevOps processes.","archived":false,"fork":false,"pushed_at":"2024-09-07T14:21:50.000Z","size":4465,"stargazers_count":60,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-11T09:56:48.051Z","etag":null,"topics":["cobra","cobra-cli","go","go-cli","viper"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/Pradumnasaraf/candy","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pradumnasaraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["eddiejaoude"]}},"created_at":"2023-03-13T20:38:45.000Z","updated_at":"2025-02-13T10:35:15.000Z","dependencies_parsed_at":"2024-10-03T12:07:21.949Z","dependency_job_id":"500b600a-dd31-4b19-9b9e-a2620978f9af","html_url":"https://github.com/Pradumnasaraf/candy","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fcandy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fcandy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fcandy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pradumnasaraf%2Fcandy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pradumnasaraf","download_url":"https://codeload.github.com/Pradumnasaraf/candy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243989730,"owners_count":20379648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cobra","cobra-cli","go","go-cli","viper"],"created_at":"2024-10-03T12:04:10.727Z","updated_at":"2025-03-17T07:12:28.139Z","avatar_url":"https://github.com/Pradumnasaraf.png","language":"Go","funding_links":["https://github.com/sponsors/eddiejaoude"],"categories":[],"sub_categories":[],"readme":"# Candy\n\n\u003cdiv align=\"center\"\u003e\n\n![Candy CLI logo](https://user-images.githubusercontent.com/51878265/224826395-f62efa65-f64c-4c2e-aa93-ad6f72e0d5d7.png)\n\n[![Releases](https://github.com/Pradumnasaraf/candy/actions/workflows/releases.yml/badge.svg)](https://github.com/Pradumnasaraf/candy/actions/workflows/releases.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/Pradumnasaraf/candy.svg)](https://pkg.go.dev/github.com/Pradumnasaraf/candy)\n\n\u003c/div\u003e\n\n**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](https://github.com/golang/go), [Cobra](https://github.com/spf13/cobra), [Viper](https://github.com/spf13/viper), etc.\n\nTo install the Candy CLI, use the command `go install github.com/Pradumnasaraf/candy@latest`.\nGo will automatically install it in your `$GOPATH/bin` directory, which should be in your `$PATH`.\n\nOnce installed, you can use the `candy` CLI command. To confirm installation, type `candy` at the command line.\n\n\u003e **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](https://gist.github.com/Pradumnasaraf/ca6f9a0507089a4c44881446cdda4aa3). \n\n## 📚 Documentation\n\n**Check out detailed documentation for getting started and using Candy CLI** [**here**](https://pradumnasaraf.github.io/candy/).\n\n## ⭐️ Features\n\n- Convert JSON file to YAML\n- Convert YAML file to JSON\n- Convert Key-Value to JSON\n- Generate Dockerfile for different languages/framework\n- Generate Kubernetes manifests for different objects\n- Encode and Decode a string to base64\n- More coming soon...\n\n## 📝 Usage\n\n```\nUsage:\n  candy [command] [flags]\n  candy [command]\n\nAvailable Commands:\n  JTY         Converts a JSON into YAML.\n  KVTJ        Converts Key-Value (text) to JSON.\n  YTJ         Converts a YAML into JSON.\n  docker      Docker related commands. Like generating a Dockerfile for a language.\n  encode      It encodes and decodes a string to base64 and vice versa.\n  help        Help about any command\n  k8s         Kubernetes related commands. Like generating manifest files for kubernetes objects.\n  update      Update candy to the latest version\n  version     Know the installed version of candy\n```\n\nFor detailed usage of each command, visit [here](https://pradumnasaraf.github.io/candy/)\n\nEg `candy JTY --file test.json` with convert JSON into YAML and create a `output.yaml` in your current directory.\n\nEg `candy docker dockerfile --lang go` to generate a `Dockerfile` template for go.\n\neg `candy k8s manifest --obj deployment` to generate a `deployment.yaml` file with deployment template.\n\n## 📜 License\n\nThis project is licensed under the Apache-2.0 license - see the [LICENSE](LICENSE) file for details.\n\n## 🛡 Security\n\nIf you discover a security vulnerability within this project, please check the [SECURITY](SECURITY.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradumnasaraf%2Fcandy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradumnasaraf%2Fcandy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradumnasaraf%2Fcandy/lists"}