Skip to content

Commit

Permalink
v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Sep 29, 2021
1 parent 59d2236 commit bbee0df
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 291 deletions.
5 changes: 3 additions & 2 deletions op.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ serve: httpme docs
build: rm -rfv docs/* ; retype build
#? clear target dir and rebuild site

watch: filewatcher src "op build"
# watch: filewatcher src "op build"
watch: retype watch
#? watch src folder and rebuild on change

dev: foreman start
# dev: foreman start
#? watch and serve

test: test/test.sh
Expand Down
3 changes: 2 additions & 1 deletion retype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ url: runfile.dannyb.co
server:
host: 0.0.0.0
port: 3000
watch: { polling: 3000 }

branding:
logo: assets/logo.svg
logoDark: assets/logo-dark.svg
label: v0.11.2
label: v0.12.0

meta:
title: " | Runfile"
Expand Down
20 changes: 11 additions & 9 deletions src/creating-reusable-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ module MyCommonTasks
usage "cake [--chocolate|--cheese]"
help "Make some cake"
action :cake do |args|
say "Making a cake..."
say "... a chocolate cake" if args['--chocolate']
say "... a cheese cake" if args['--cheese']
puts "Making a cake..."
puts "... a chocolate cake" if args['--chocolate']
puts "... a cheese cake" if args['--cheese']
end

usage "faces"
help "Make faces"
action :faces do |args|
say "Making faces"
puts "Making faces"
end

endcommand
Expand All @@ -57,14 +57,16 @@ version "0.1.0"
MyCommonTasks.tasks

# continue with regular tasks
usage "hello [<name> --color]"
usage "hello [<name> --shout]"
help "Say hello"
option "-c --color", "Greet with color"
option "-s --shout", "Greet louder"
action :hello do |args|
if args['--color']
say "!txtgrn!Hello #{args['<name>']}"
message = "Hello #{args['<name>']}"

if args['--shout']
puts message.upcase
else
say "Hello #{args['<name>']}"
puts message
end
end
```
Expand Down
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ A simple Runfile looks like this:
usage "greet <name>"
help "Say hello to <name>"
action :greet do |args|
say "Hello #{args['<name>']}"
puts "Hello #{args['<name>']}"
end
```

Expand Down
176 changes: 0 additions & 176 deletions src/reference/execution-commands.md

This file was deleted.

87 changes: 0 additions & 87 deletions src/reference/output-commands.md

This file was deleted.

Loading

0 comments on commit bbee0df

Please sign in to comment.