Code Monkey home page Code Monkey logo

icli's Introduction

icli

Interactive cli/shell library for C

A library that adds the ability to implement CISCO-like interactive shells from C code. Please see examples directory for sample code and API usage.

Example cli session:

$ ./cli 
my_cli> help 
Available commands:
    quit       : Quit interactive shell
    help       : Show available commands or show help of a specific command
    ?          : Synonym for `help'
    history    : Show a list of previously run commands
    containers : Containers
    show       : Print info
my_cli> show containers
Container: 1
Container: 2
Container: 3
Container: 4
my_cli> containers 
my_cli(containers)> list
args:

Container: 1
Container: 2
Container: 3
Container: 4
my_cli(containers)> end
my_cli> sd
sd: No such command
my_cli> show
Command show accepts exactly 1 arguments. 0 were provided
my_cli> show cont
Command show 0 argument invalid: cont
my_cli> quit

icli's People

Contributors

yanburman 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.