question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI tool available?

See original GitHub issue

I want to be able to run files and stdin through particular grammars and semantic operations that will generate files or print results to stdout. I’ve started building my own tooling for doing this with my own work, but wanted to check to see if something already existed and I didn’t find anything in a cursory search through the repositories posted here.

Example:

cat model | run_operation RM_PGSQL toPostgreSQL > schema.ddl

Where RM_PGSQL refers to a grammar and toPostgreSQL refers to a semantic action (or derivative).

Does something like this exist, or is a common solution planned?

My apologies if I have missed something.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pdubroycommented, Nov 6, 2022

I’m going to close this as we now have an “official” CLI tool.

1reaction
robertothaiscommented, Feb 19, 2018

I also had a need for this, and recently released https://github.com/robertothais/ohm-cli.

It currently only supports validating grammars and recognizing inputs. I’d like to add support for semantic actions soon. Any feedback is welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Tools for Developers | Toptal
Command line tools are a necessity for every developer. This article provides an overview of various CLI tools and explains why you should...
Read more >
What is a command-line interface (CLI)? - TechTarget
A command-line interface (CLI) is a text-based user interface (UI) used to run programs, manage computer files and interact with the computer. Command-line ......
Read more >
50 Useful Command Line Tools Developers Will Love - Stackify
Check out our top 50 roundup of the best command line tools broken out by categories, like Web Development, Utilities, Productivity, ...
Read more >
The 10 Best CLI Tools 🛠️ for Software Developer's ...
Httpie is a command-line HTTP client with an intuitive UI, JSON support, syntax highlighting, wget-like downloads, plugins, and more. Using curl ...
Read more >
My Favorite CLI Tools - Sebastian Witowski
26 CLI tools that I love. And one that is OK. ... But, at the same time, CLI commands provided by those tools...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found