navy-captain

Executes orders (tasks) received from the Admiral which have been issued via the comms CLI.

Usage no npm install needed!

<script type="module">
  import navyCaptain from 'https://cdn.skypack.dev/navy-captain';
</script>

README

navy-captain

build status

Executes orders (tasks) received from the Admiral which have been issued via the comms CLI.

Installation

npm install -g navy-captain

Usage

captaind --help

Quickstart Demo

To quickly get a Captain up and running so you can see how it works, run the following commands:

git clone git@github.com:microadam/navy-captain.git
cd navy-captain/example/
captaind -c config.js

This will give you a Captain that is able to execute the 'test' order for the 'testApp' application.

Configuration

When a Captain is initialised, it must be given a config file. The config file is used to determine how the Captain will behave, as well as dictating what orders it is able to run and where the Admiral is located.

For an example config file, please see the 'example' directory.

Orders

Orders are the tasks that a Captain knows how to execute.

For an example order, please see the 'example' directory.

See here for a detailed guide on how to develop your own Orders.