smash-cli

smash-cli

  • Documentation
  • Examples
  • Blog
  • GitHub

›Usage

Usage

  • Using a template
  • Using a middleware

Contribute

  • Writing a template
  • Writing a middleware
Edit

Using a middleware

We are going to use smash-middleware-helloworld to show hello world on the terminal.

Make sure you have installed smash-cli.

1 Add a task

Add a task named helloworld into .smash/task.yml:

helloworld: # a task named `helloworld`
  - name: smash-middleware-helloworld

2 Install the middleware

$ smash install

3 Run the task

Now, run the helloworld task:

$ smash run helloworld

# or
$ smash r helloworld

Yeah! You finished it. Browse middlewares to find more useful middlewares.

← Using a templateWriting a template →
  • 1 Add a task
  • 2 Install the middleware
  • 3 Run the task
smash-cli
Documentation
Getting StartedMiddlewaresTemplatesProgrammatic APIs
Examples
UsageContribute
Community
HelpUser ShowcaseIssuesYuque
More
BlogStar
Facebook Open Source
Copyright © 2020 www.smash-cli.com
粤ICP备18035177号-2 | 粤公网安备 44011302002170号