kotlin-interactive-shell
kotlin-interactive-shell copied to clipboard
ki-shell option to run script in non-interactive mode
Sometimes we need to run some script non-interactively (say for some small automation). It would be nice to have the argument for shell to point program source location.
For reference in awk
it's -f
and --file
, in sed
it's the same.
Python also has -c
option, which allows passing arbitrary expression like python -c "expression"
This will make ki
a replacement of kscript