Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

sayanarijit/xplr-yml2lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xplr-yml2lua

This tool tries to convert yaml files to lua, aimed at easing the 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

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

cat ~/.config/xplr/config.yml | poetry run xplr-yml2lua

Flat

cat ~/.config/xplr/config.yml | poetry run xplr-yml2lua --flat

About

Helper for migrating from config.yml to init.lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages