Skip to content
Browse files

Still not up to date but no longer completely wrong.

  • Loading branch information...
1 parent d3d264f commit fc8708072a62422070ca01e7a16d5381a83cf9bc @wayneeseguin wayneeseguin committed Aug 5, 2011
View
6 content/modules/shell/array/dsl.haml
@@ -154,9 +154,9 @@
%code
:preserve
user$ cat $HOME/test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules array
+ #!/usr/bin/env bdsm
+
+ modules bdsm/array
my_array=(1 2 3 4)
echo ${my_array[@]}
View
3 content/modules/shell/core/dsl.haml
@@ -75,8 +75,7 @@
%code
:preserve
user$ cat $HOME/test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
+ #!/usr/bin/env bdsm
NIY
user$ $HOME/test
View
6 content/modules/shell/environment/dsl.haml
@@ -89,9 +89,9 @@
%h4 usage examples
%p
user$ cat $HOME/test
- \!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules environment # Load the trace module.
+ \!/usr/bin/env bdsm
+
+ modules bdsm/environment # Load the environment module.
%p
if shell_is_interactive
then
View
6 content/modules/shell/extensions/dsl.haml
@@ -43,9 +43,9 @@
%code
:preserve
$ cat $HOME/test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules extensions
+ #!/usr/bin/env bdsm
+
+ modules bdsm/extensions
extension_action ext list
$ $HOME/test
View
5 content/modules/shell/filesystem/dsl.haml
@@ -698,10 +698,9 @@
%code
:preserve
user$ cat "$HOME/test"
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
+ #!/usr/bin/env bdsm
- modules filesystem
+ modules bdsm/filesystem
if file_contains "$HOME/.bdsmrc" ".*w00t.*"
then
View
12 content/modules/shell/help/dsl.haml
@@ -187,9 +187,9 @@
%code
:preserve
user$ cat $HOME/test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules help
+ #!/usr/bin/env bdsm
+
+ modules bdsm/help
action "help" "Displays the help output for the ${extension} extension"
action "install" "Installs Z redis package"
@@ -220,9 +220,9 @@
%code
:preserve
user$ cat $HOME/test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules help
+ #!/usr/bin/env bdsm
+
+ modules bdsm/help
note "Don't forget the milk! "
note "... and cookies... mmm...."
View
6 content/modules/shell/time/dsl.haml
@@ -35,9 +35,9 @@
%code
:preserve
user$ cat ./test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules trace time # Load the trace module.
+ #!/usr/bin/env bdsm
+
+ modules ext/time # Load the time module.
timestamp_set
echo $timestamp
View
13 content/modules/shell/trace/dsl.haml
@@ -163,9 +163,8 @@
%code
:preserve
user$ cat ./test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules trace # Load the trace module.
+ #!/usr/bin/env bdsm
+
enable_backtrace
echo "Error exit with backtrace is now off."
false # Does not cause exiting with backtrace printing.
@@ -194,9 +193,8 @@
%code
:preserve
user$ cat ./test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules trace # Load the trace module.
+ #!/usr/bin/env bdsm
+
disable_backtrace
echo "Error exit with backtrace is now off."
false # Does not cause exiting with backtrace printing.
@@ -223,9 +221,6 @@
%code
:preserve
user$ cat ./test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules trace # Load the trace module.
functiona()
{
View
5 content/modules/shell/variables/dsl.haml
@@ -110,9 +110,8 @@
%code
:preserve
user$ cat test
- #!/usr/bin/env bash
- source "/usr/local/bdsm/modules/bash/core/initialize" # Load BDSM framework core.
- modules trace variables # Load the trace module.
+ #!/usr/bin/env bdsm
+
unset HOME
variables_must_be_nonempty HOME

0 comments on commit fc87080

Please sign in to comment.
Something went wrong with that request. Please try again.