Releases: RedDocMD/cork
Releases · RedDocMD/cork
Cork v0.2.6
- Added flags
-x/-o/-d/-b
to print the output in inline evaluation mode (-e
) in only one radix (hex/oct/dec/bin). - Added a new
to
directive, which allows for printing the answer in that radix. Thus, we can now do something like5 + 3 as bin
and get back0b1000
. Thus, we have an "inline" way of overriding the default output format, which can be changed withset of <radix>
. Thanks to @mgaggero for this feature!
Cork v0.2.4
- Added bitwise operators:
&
(AND),|
(OR),^
(XOR) [Thank you @HomoElectromagneticus!] - Fixed bug where 0 would be rendered in non-decimal bases with only radix. Also, fixed binary radix rendering from
Ox
to0x
. [Thank you @Zenithsiz!]
Cork v0.2.3
- In the
-a/--all-bases
flag when combined with the-e/--expr
flag prints outputs in all four bases. - The
-p/--punctuate-output
flag enables underscore separators in output. There is also a config file option with the same name. - The default prompt is coloured yellow.
- CLI args parsing is done by Clap v3, so more colours in
--help
. - Expressions no longer need to be quoted in the
-e
flag. Thuscork -e 0x200000 + 40
is valid. You would still need to watch out for shell globbing while using the*
operator.
Cork v0.2.2
- Default prompt has a space included: "cork> "
- Fixed rustyline history saving bug
Cork: v0.2.1
New features:
- Script execution: Cork now accepts a script file (as an alternative to interactive mode). The file will be executed from top to bottom and the output will be printed to
stdout
, while errors are printed tostderr
.
Cork: v0.2.0
New features:
- Config file can be specified
- Support for directly computing an expression entered as an arg added
- Numbers can now have underscores as separators
Portable Windows build now included!
v0.1.2
This release introduces:
- The shift right and shift left operators (Thank you, JCallicoat).
- Pre-built binary for Linux