Code Monkey home page Code Monkey logo

csharptest.net.commands's Introduction

CSharpTest.Net.Commands

CSharpTest.Net.Commands (moved from https://code.google.com/p/csharptest-net/)

Changes

2014-03-09 Initial clone and extraction from existing library.

Online Help

See the online help for CSharpTest.Net.Commands.CommandInterpreter http://help.csharptest.net/?CSharpTest.Net.Library~CSharpTest.Net.Commands.CommandInterpreter_members.html

Usage

The nuget package installs both a reference to the compiled assembly as well as a copy of the source code. This allows users to either embed the source directly (stand-alone) and remove the reference, or to remove the source folder "Commands" and use the referenced library.

Example

The following example program exposes a command-line that supports the "Example" command to print "Hello World" to std::out, and a Help command that describes the commands available. See examples for more uses.

    class Program
    {
        public static void Example()
        {
            Console.WriteLine("Hello World");
        }

        [STAThread]
        static int Main(string[] args)
        {
            // Construct the CommandInterpreter and initialize
            ICommandInterpreter ci = new CommandInterpreter(
                DefaultCommands.Help,
                typeof(Program)
            );

            ci.Run(args);

            return ci.ErrorLevel;
        }
    }

csharptest.net.commands's People

Contributors

csharptest avatar

Watchers

Craig Benner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.