#![ cfg_attr( not( feature = "use_std" ), no_std ) ]
#![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ]
#![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ]
#![ doc( html_root_url = "https://docs.rs/wtest/" ) ]
#![ warn( rust_2018_idioms ) ]
#![ warn( missing_debug_implementations ) ]
#![ warn( missing_docs ) ]

//!
//! Utility to publish modules on `crates.io` from a command line.
//!

#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/Readme.md" ) ) ]

use ::wtest::*;
#[ cfg( feature = "use_std" ) ]
use std::env;

//

#[ cfg( feature = "use_std" ) ]
fn main() -> Result< (), wtools::error::BasicError >
{
  let args = env::args().skip( 1 ).collect::< Vec< String > >();

  let ca = wca::commands_aggregator()
  .changing_exit_code( true )
  .commands().replace( commands::commands_form() ).end()
  .form();
  ca.program_perform( args.join( " " ).as_str() )
}

#[ cfg( not( feature = "use_std" ) ) ]
fn main()
{
}
