#wtools #cli #cui #user-interface

wca

The tool to make CLI ( commands user interface ). It is able to aggregate external binary applications, as well as functions, which are written in your language.

4 releases

new 0.1.3 Jun 23, 2022
0.1.2 Jun 14, 2022
0.1.1 May 16, 2022
0.1.0 Oct 1, 2021

#52 in Command line utilities

Download history 4/week @ 2022-03-07 10/week @ 2022-03-14 5/week @ 2022-03-21 6/week @ 2022-03-28 35/week @ 2022-04-04 157/week @ 2022-04-11 48/week @ 2022-04-18 30/week @ 2022-04-25 18/week @ 2022-05-02 6/week @ 2022-05-09 56/week @ 2022-05-16 19/week @ 2022-05-23 3989/week @ 2022-05-30 2621/week @ 2022-06-06 2135/week @ 2022-06-13 4230/week @ 2022-06-20

12,977 downloads per month
Used in 3 crates

MIT license

2MB
50K SLoC

Module :: wca

experimental rust-status docs.rs Open in Gitpod discord

The tool to make CLI ( commands user interface ). It is able to aggregate external binary applications, as well as functions, which are written in your language.

Sample

#[ cfg( feature = "use_std" ) ]
{
  use wca::*;
  use wca::string::parse_request::OpType;

  let instruction = instruction::instruction_parse()
  .instruction( ".get some v:1" )
  .perform();
  let properties_map = std::collections::HashMap::from([ ( "v".to_string(), OpType::Primitive( "1".to_string() ) ) ]);
  let exp = instruction::Instruction
  {
    err : None,
    command_name : ".get".to_string(),
    subject : "some".to_string(),
    properties_map,
  };
  assert_eq!( instruction, exp );
}

To add to your project

cargo add wca

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/wca_trivial
cargo run

Dependencies

~5MB
~128K SLoC