This repository was archived by the owner on Aug 31, 2023. It is now read-only.
Pass config file location to CLI (for Sublime plugin) #4075
marekpiechut
started this conversation in
General
Replies: 1 comment
-
Hmm, never mind. It just started working, something had to be broken in my code. Sorry for the noise. Anyway, here's the plugin if anyone get's here while searching for it: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've spent few hours and wrote a SublimeText plugin for Rome formatter using sub process and piping source to cli. It's almost ready, but I'm having hard time forcing Rome cli to find
rome.json
config file. I don't see any option to pass it via command line and setting process cwd to folder that includes the file does not seem to work.I've dug into code for cli and found that
load_config
function inconfiguration.rs
hasNone
passed as config folder thus making it impossible to pass config file location:When I hack it a bit to pass current dir there it works flawlessly:
Would it be possible to have option for cli to pass config file or make it use process cwd to search for file? Or am I missing something and it already should be possible?
Beta Was this translation helpful? Give feedback.
All reactions