Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/r0man/docopt.el

A Docopt implementation in Emacs Lisp.
https://github.com/r0man/docopt.el

docopt emacs emacs-lisp transient

Last synced: 4 months ago
JSON representation

A Docopt implementation in Emacs Lisp.

Awesome Lists containing this project

README

        

* docopt.el

[[https://github.com/r0man/docopt.el/actions?query=workflow%3ACI][https://github.com/r0man/docopt.el/workflows/CI/badge.svg]]

A [[http://docopt.org/][Docopt]] implementation in Emacs Lisp.

** Usage

The Emacs command =M-x docopt= asks the user for the name of a
[[http://docopt.org/][Docopt]] shell command, builds an Emacs [[https://github.com/magit/transient][transient]] command from the
usage help of the shell command, and finally, invokes the transient
command.

** Example

The Emacs transient command for the [[http://docopt.org/][Docopt]] example program
[[https://github.com/r0man/docopt.el/blob/master/bin/naval-fate][naval-fate]] (must be in =PATH=) can be invoked with =M-x docopt
[RET] "naval-fate" [RET]=.

[[doc/docopt.gif]]

** License

Copyright © 2020 [[https://github.com/r0man][r0man]]

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3, or (at
your option) any later version.