Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

helgoboss/capsule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capsule

Capsule is a simple Scala API for building, using and extending a domain-specific language (DSL) for managing start and stop logic.

Example

A Capsule DSL utilization might look like this:

// Somewhere in your code
whenTurnedOn {
  whenDevicePluggedIn {
    lightLED()
  }
}

Documentation

Further reading

See project Domino for a real-world application of this API.

About

DSL for things which can be started and stopped

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages