Skip to content

Latest commit

 

History

History
 
 

wca

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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 std::collections::HashMap;
  use wca::*;
  use wca::string::parse_request::OpType::Primitive;

  let parser = DefaultInstructionParser::former().form();
  let instruction = parser
  .parse( ".get some v:1" )
  .unwrap();
  let exp = wca::instruction::Instruction
  {
    command_name : ".get".to_string(),
    subject : "some".to_string(),
    properties_map : HashMap::from([ ( "v".to_string(), Primitive( "1".to_string() ) ) ]),
  };
  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