Git Product home page Git Product logo

cligen's Introduction

CLIgen

Build Status codecov

CLIgen is a Command-Line Interface generator.

Well, actually it is not really a generator, since it does not generate code for CLI:s. Instead, it builds and interprets datastructures (a parse-tree) which a library (libcligen) interprets in runtime. It is fast and efficient and helps you develop CLI:s easier. You enter a CLI syntax in a text file, and write callback functions in C. The callback functions add the semantics, that is, what the commands in the CLI are supposed to do.

The main documentation is the cligen tutorial which is usually kept up-to-date and is probably the best way to understand CLIgen.

Some background material can be found on the CLIgen project page.

CLIgen is not a system in itself, you need to build your own 'backend'. There is another co-project: 'clixon' which is a whole system where you load dynamic frontend and backend modules. See CLIXON project page and CLIXON github. Clixon provides a system with embedded database, commit semantics, YANG and NETCONF interface, etc. CLIgen is a part of clixon but can be used by itself.

The source code here is built and installed using:

  configure;
  make;
  sudo make install.

The source builds a single library. If you build applications, you should include cligen.h and link with the library.

There are several example applications:

  • cligen_hello Simplest possible. Just builds a 'hello world' greeting by in-line C
  • cligen_file Read a syntax specification from file. You must supply the file.
  • cligen_tutorial Samples of techniques used in cligen_tutorial.pdf

See also Changelog.

For building the C reference documentation using doxygen, do: make doc and place your browser at doc/index.html.

CLIgen is dual license. Either Apache License, Version 2.0 or GNU General Public License Version 2. You choose.

I can be found at [email protected].

getline

CLIgen uses getline with the following copyright:

Copyright (C) 1991, 1992, 1993 by Chris Thewalt ([email protected])

Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted, provided that the above copyright notices appear in all copies and that both the copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty.

cligen's People

Contributors

olofhagsand avatar rbgarga avatar dcornejo avatar mgsmith1000 avatar baruchsiach avatar rcmcdonald91 avatar dcornejo-netgate avatar shmuelnatan avatar krihal avatar tagrenam avatar bbergquist0930 avatar plushbeaver avatar loos-br avatar pheller avatar andrnils avatar nowaits avatar stasst-siklu 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.