Skip to content

Releases: RedDocMD/cork

Cork v0.2.6

14 Nov 09:31
Compare
Choose a tag to compare
  • 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 like 5 + 3 as bin and get back 0b1000. Thus, we have an "inline" way of overriding the default output format, which can be changed with set of <radix>. Thanks to @mgaggero for this feature!

Cork v0.2.4

29 Aug 10:16
Compare
Choose a tag to compare
  • 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 to 0x. [Thank you @Zenithsiz!]

Cork v0.2.3

08 Feb 09:09
Compare
Choose a tag to compare
  • 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. Thus cork -e 0x200000 + 40 is valid. You would still need to watch out for shell globbing while using the * operator.

Cork v0.2.2

15 Dec 05:15
Compare
Choose a tag to compare
  • Default prompt has a space included: "cork> "
  • Fixed rustyline history saving bug

Cork: v0.2.1

02 Nov 08:35
Compare
Choose a tag to compare

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 to stderr.

Cork: v0.2.0

02 Oct 15:33
Compare
Choose a tag to compare

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

21 May 15:06
Compare
Choose a tag to compare

This release introduces:

  • The shift right and shift left operators (Thank you, JCallicoat).
  • Pre-built binary for Linux

v0.1.1

16 May 18:09
Compare
Choose a tag to compare
Change Cargo.toml to 0.1.1