0.2.4 • Published 4 years ago

captain v0.2.4

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Features

Coming soon

Usage

Installation

Guided tutorial on path.cafe (coming soon)

npm install captain

API

Example

  1. Write workflow

rate.js:

export default function* rate(){
  let rating = yield ["collect/number", {
    message: "How would you rate this, from 1 to 10?",
    min: 1,
    max: 10,
    initial: 5
  }]
  let reason = yield ["collect/text", {
    message: `Why did you rate this a ${rating}?`
  }]
  return { rating, reason };
}
  1. Call workflow using captain
  captain ./rate.js

Possible Prompts: yield [type, props]

TypeProps
collect/text{ message, initial, validate }
collect/secret{ message, validate }
collect/number{ message, initial, min, max, float, validate }
collect/date{ message, initial, locales, mask }
collect/confirm{ message, initial }
collect/toggle{ message, initial, active, inactive }
collect/select{ message, initial, multi, hint, choices ({ title, description, value, disabled }) }
font/[font_name]{ message, colors }
mdmarkdown
progress{ message, promise }

Examples

Coming soon

Details


Development

Contributing Guidelines

Commands

Guided process to commit changes and/or submit a pull request

npm run save

Roadmap

Coming soon

Acknowledgements

License

MIT © Marshall Brandt

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.1.0

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago