Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sm/sm_apidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Apr 3, 2012
2 parents f33f2a9 + 3a9a2e5 commit 7da0b46
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 20 deletions.
28 changes: 28 additions & 0 deletions bin/assert/string
Expand Up @@ -4,3 +4,31 @@ set -v # Turn on verbose logging, so that the following will present a tutorial.

# assert module api is loaded with the line 'api/assert' in shell/includes.

if assert string "test" equals "test"
then
log "The string test is equal to test!"
else
log "The string test is not equal to test!"
fi

if assert string "test" equals "fail"
then
log "The string test is equal to fail!"
else
log "The string test is not equal to fail!"
fi

if assert string "" is empty
then
log "The string is empty!"
else
log "The string is not empty!"
fi

if assert string "non empty" is nonempty
then
log "The string is non empty!"
else
log "The string is empty!"
fi

13 changes: 13 additions & 0 deletions bin/interactive/shell
@@ -0,0 +1,13 @@
#!/bin/sh

set -v # Turn on verbose logging, so that the following will present a tutorial.

# interactive(s) module is loaded with line 'api/interactive' in an
# extension's shell/includes file.

if shell is interactive
then
log "This shell is interactive!"
else
log "This shell is not interactive."
fi
1 change: 0 additions & 1 deletion bin/service/activate

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/cli

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/confd

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/configcheck

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/deactivate

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/info

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/initd

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/initialize

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/list

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/logtail

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/pid

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/reload

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/restart

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/setup

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/signal

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/start

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/status

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/stop

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/uninstall

This file was deleted.

1 change: 0 additions & 1 deletion bin/service/usage

This file was deleted.

0 comments on commit 7da0b46

Please sign in to comment.