Skip to content

Utility to generate command line application stubs and documentation from a specification file.

License

Notifications You must be signed in to change notification settings

wmorellato/brandon

Repository files navigation

An utility to create command line application stubs from a YAML Specification. For now, the only available language for creating stubs is Python, in a multifile structure. The builders page has details about builders.

Usage

Brandon - An utility to create command line applications from their YAML specifications.

Usage:
    brandon [command]

Commands:
    brandon generate project|docs|summary     Generation of different parts of the project.
    brandon version                           Show the version and exit.

After creating the YAML file describing the application, pass it to Brandon as an argument.

A simple command line application is shown below. It has only one command, which prints its version and exits.

name: Sample App
version: 0.0.1
description: A sample application.
authors:
- name: John Doe
  email: [email protected]
  url: https://github.com/john.doe
tags: ['cli', 'utils']
license: MIT License
url: https://github.com/john.doe/sample-app
languages: ['python']
cli:
  version:
    description: Prints the version.

You create the stub by passing it to Brandon:

$ brandon generate project cli.yaml

After generating the stub, this application can be called by:

$ sample-app version

Note
Brandon doesn't create any logic. It just creates the stub.

You can also create the documentation for the application. The documentation is generated using MkDocs and Material for MkDocs. The image below shows the output site for the definition above.

Sample App docs

About

Utility to generate command line application stubs and documentation from a specification file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages