Skip to content

Devastus/CLITools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLITools

A small set of utilities and tools for C# command line applications

Creating new commands

New commands can be written by writing a function with certain signature and attaching the Command attribute as follows:

//First parameter is the command to invoke with, then it's description
[Command("example", "example description")]
public static void ExampleCommand(string[] args)
{
	foreach(string a in args)
	{
		Console.WriteLine(a);
	}
}

Function needs to be static, return void and take in an array of string arguments. Arguments need to be parsed inside the function itself.

About

A small set of utilities and tools for C# command line applications

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages