Giter Site home page Giter Site logo

dylan-lang / command-interface Goto Github PK

View Code? Open in Web Editor NEW
8.0 12.0 5.0 263 KB

Interactive command interface system for Dylan

Home Page: http://dylan-lang.github.io/command-interface/

License: Other

Dylan 99.20% C 0.80%
dylan command-line dylan-lang

command-interface's Introduction

Command Interface System

|Build status|

|Documentation|

This is a system for building command-driven interfaces in Dylan.

It can currently be used to declaratively design terminal-based command interfaces, commonly called shells or CLIs.

We also strive to implement graphical command interfaces in a similar manner to Symbolics Genera, including support for full graphical and markup output.

Compiling

Update library dependencies:

dylan update

Build the library, tests and demo with:

dylan build --all

Run the demo:

_build/bin/command-interface-demo

And the tests:

_build/bin/command-interface-test

Completion in bash

Our system integrates with bash completion. This allows one to implement a binary that can be used both as an interactive shell and from the system shell.

To enable this feature you need to load the shell snippet printed by the following command into your shell:

_build/bin/command-interface-demo bashcomplete

Once you do this you can complete and execute all commands that would be available inside the shell.

This feature is automatically available to library users.

command-interface's People

Contributors

cgay avatar fraya avatar promovicz avatar rjmacready avatar waywardmonkeys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

command-interface's Issues

node-symbol can probably be a string

From a quick inspection:

batavia:command-interface bruce (master) $ git grep node-symbol
command-interface/building.dylan:        if (instance?(s, <symbol-node>) & (node-symbol(s) == symbol))
command-interface/help.dylan:      cmd-title := add(cmd-title, as(<string>, node-symbol(node)));
command-interface/nodes.dylan:  slot node-symbol :: <symbol>,
command-interface/nodes.dylan:  format(stream, "%s", node-symbol(object));
command-interface/nodes.dylan:  as(<string>, node-symbol(node));
command-interface/nodes.dylan:  starts-with?(as(<string>, node-symbol(node)),
command-interface/nodes.dylan:                  complete-options: list(as(<string>, node-symbol(node))));
command-interface/nodes.dylan:  format(stream, "%s - %s", node-symbol(object), command-help(object));
command-interface/nodes.dylan:                  complete-options: list(as(<string>, node-symbol(node))));
command-interface/nodes.dylan:  concatenate(as(<string>, node-symbol(node)),
command-interface/nodes.dylan:  starts-with?(as(<string>, node-symbol(node)),
command-interface/nodes.dylan:                  complete-options: list(as(<string>, node-symbol(node))));

Almost every use is treating it as a string.

Update README

  • Update instructions to use 'dylan-tool'
  • Add badges

Boolean flag options

I'd like to have:

build verbose

Where verbose is just a boolean option indicated by its presence.

Update .gitignore

Ignore backup files, 'dylan-tool' and documentation working directories.

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.