Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codacy/ytool
A simple tool to set values in yaml files preserving format and comments.
https://github.com/codacy/ytool
cli yaml
Last synced: 3 months ago
JSON representation
A simple tool to set values in yaml files preserving format and comments.
- Host: GitHub
- URL: https://github.com/codacy/ytool
- Owner: codacy
- License: mit
- Created: 2019-07-07T16:59:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T23:47:14.000Z (over 2 years ago)
- Last Synced: 2024-10-04T16:06:50.759Z (4 months ago)
- Topics: cli, yaml
- Language: Python
- Size: 27.3 KB
- Stars: 4
- Watchers: 12
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
======
YTool
======A simple tool to set values in yaml files preserving format and comments.
This command line tool is based on `ruamel.yaml `__^^^^^^^^^^^^^^^^^^^^^^^^
Install:
^^^^^^^^^^^^^^^^^^^^^^^^Ytool can be installed simply by running:
.. code-block:: bash
$ pip install ytool
^^^^^^^^^^^^^^^^^^^^^^^^
Example:
^^^^^^^^^^^^^^^^^^^^^^^^.. code-block:: bash
$ ytool -f some.yaml -s some.string.key value -d float_key 9.9 -i int.key.path 10
^^^^^^^^^^^^^^^^^^^^^^^^
Help:
^^^^^^^^^^^^^^^^^^^^^^^^.. code-block:: bash
$ usage: ytool [-h] --file FILE [--set-string path value] [--set-int path value]
[--set-float path value] [--output OUTPUT] [--edit-file]
[--verbose]Set values in yaml file preserving format and comments.
optional arguments:
-h, --help show this help message and exit
--file FILE, -f FILE Name of the chart file to change
--set-string path value, -s path value
Set string value for path
--set-int path value, -i path value
Set integer value for path
--set-float path value, -d path value
Set float value for path
--output OUTPUT, -o OUTPUT
Name of output file
--edit-file, -e Edit input file directly
--verbose, -v Print debug information to stdout---------------
What is Codacy?
---------------`Codacy `__ is an Automated Code Review Tool
that monitors your technical debt, helps you improve your code quality,
teaches best practices to your developers, and helps you save time in
Code Reviews.^^^^^^^^^^^^^^^^^^^^^^^^
Among Codacy’s features:
^^^^^^^^^^^^^^^^^^^^^^^^- Identify new Static Analysis issues
- Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab
(and also direct git repositories)
- Auto-comments on Commits and Pull Requests
- Integrations with Slack, HipChat, Jira, YouTrack
- Track issues in Code Style, Security, Error Proneness, Performance,
Unused Code and other categoriesCodacy also helps keep track of Code Coverage, Code Duplication, and
Code Complexity.Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among
others.^^^^^^^^^^^^^^^^^^^^
Free for Open Source
^^^^^^^^^^^^^^^^^^^^Codacy is free for Open Source projects.