Skip to content

erikareads/do_nothing_dsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DoNothingDsl

A Domain Specific Language for the DoNothing Framework.

Usage

#!/usr/bin/env elixir

Mix.install([{:do_nothing_dsl, github: "erikareads/do_nothing_dsl"}])

defmodule MyScript do
  use DoNothingDsl

  title "Example procedure"
  description "A description of the procedure..."

  step do
    title "A first step"
    instructions "The instructions to follow for the first step."
  end

  step do
    title "A second step"
    instructions "The instructions..."
  end
end

DoNothingDsl.parse(MyScript)
|> DoNothing.execute()

Running this will output:

# Example procedure

A description of the procedure...

[Enter] to begin

## A first step

The instructions to follow for the first step.

[Enter] when done

## A second step

The instructions...

[Enter] when done

done!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages