Cargo Features

[dependencies]
oursh = { version = "0.4.4", default-features = false, features = ["shebang-block", "raw"] }
default = raw, shebang-block

These default features are set whenever oursh is added without default-features = false somewhere in the dependency tree.

shebang-block default

TODO: Justify and explain features.

Enables lexing of TEXT tokens, and parsing of SheBang, HashLang, AltLang blocks. Without this feature, the POSIX shell aims not to vary from a proper POSIX implementation at all.

raw default

Raw terminal mode for better control of the IO interactions. This allows things like arrow keys for history, and cursor editing.

Affects action::ActionContext.prompt_length, action::ActionContext.text, repl::action