https://github.com/sayanarijit/xplr-yml2lua
  
  
    Helper for migrating from config.yml to init.lua 
    https://github.com/sayanarijit/xplr-yml2lua
  
        Last synced: 7 months ago 
        JSON representation
    
Helper for migrating from config.yml to init.lua
- Host: GitHub
- URL: https://github.com/sayanarijit/xplr-yml2lua
- Owner: sayanarijit
- Archived: true
- Created: 2021-05-22T12:13:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-22T18:12:15.000Z (over 4 years ago)
- Last Synced: 2025-02-09T05:30:04.677Z (9 months ago)
- Language: Python
- Homepage: https://github.com/sayanarijit/xplr
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          xplr-yml2lua
============
This tool tries to convert yaml files to lua, aimed at easing the [xplr](https://github.com/sayanarijit/xplr) YAML -> Lua migration.
**Important:** This tool will not generate 100% correct lua code. You will need to mix and match the flat and nested outputs and fix syntax issues manually.
Install
-------
#### You will need Python ~ 3.8 and [poetry](https://python-poetry.org/docs/#installation)
```bash
git clone https://github.com/sayanarijit/xplr-yml2lua
cd xplr-yml2lua
poetry install --no-dev
poetry run xplr-yml2lua --help
```
**Note:** It may run on other versions of Python, but I haven't tested it.
Examples
--------
#### Nested
```bash
cat ~/.config/xplr/config.yml | poetry run xplr-yml2lua
```
#### Flat
```bash
cat ~/.config/xplr/config.yml | poetry run xplr-yml2lua --flat
```