Closed zachfeldman closed 9 years ago
Does it work if you use the -f flag?
Eg.
`gimli -f /Users/zachfeldman/dev/curriculum/workshops/terminal-commands.md -o /Users/zachfeldman/Desktop/`
The behaviour when not using the -f flag to convert a specific file is to convert all files in the current directory. If it does not work I will look into it.
Bingo! May want to add more examples in the docs of using it within a Ruby app? THanks though!
Good :)
Yea, it would be nice, but for now. If you look at the bin/
script https://github.com/walle/gimli/blob/11278758f08e2a14a05edc7290df0da5c121de59/bin/gimli it gives an overview of using the code as a library. Set up the config object and run Gimli#process!
The Gimli#process!
https://github.com/walle/gimli/blob/11278758f08e2a14a05edc7290df0da5c121de59/lib/gimli.rb#L29 method in it's turn basically just calls Converter#convert!
https://github.com/walle/gimli/blob/11278758f08e2a14a05edc7290df0da5c121de59/lib/gimli/converter.rb#L27
I tried using Backticks (there's no documentation for just using a class/module if this is possible) and I get no output
this returns true using
system
and backticks but no output is made. Any advice @walle ?