/snippet

Generate and run simple code in the command line.

Primary LanguageRustMozilla Public License 2.0MPL-2.0

snippet

Generate and run simple c/c++/rust code in the command line.

Usage

Install snippet

cargo install snippet

Install compiler and language plugin

snippet f snippet-compiler-gcc

snippet f snippet-language-c

Checkout plugins list in plugins.ini

Run code

snippet c -e "printf(\"hello from wasip1\")" -p -fmt="clang-format=--style=GNU" -cat="bat=-l=C"