A simple tool to convert YAML files into TOML files.
- Clone the GitHub Repository
git clone https://github.com/TheLustriVA/yaml_to_toml_converter.git
- Navigate into the cloned directory
cd yaml_to_toml_converter
- Install the required Python packages
pip install -r requirements.txt
You can run the converter in several ways:
python yaml_toml.py my_yaml_file.yml
The converter will send the .toml file to the outputs/ folder.
outputs/my_yaml_file.toml
You can run the converter with a space-delimited list of yaml files and each one will be converted.
python yaml_toml.py yaml_num_1.yaml yaml_num_2.yaml yaml_num_3.yaml yaml_num_4.yaml
You can run the converter with an input directory and all YAML files in that directory will be converted.
python yaml_toml.py --input ~/old_dotfiles/
Use the --output flag to set a specific output directory.
python yaml_toml.py --output ~/dotfiles/ my_dotfile.yml
By default, the converter checks if the input files have a .yml or .yaml extension. You can skip this check with the `--skip-extension-check`` flag.
python yaml_toml.py --skip-extension-check my_file
If no arguments are provided, the script will convert all YAML files in the current directory and output them to ./outputs/.
python yaml_toml.py