update flowcontrol package

This commit is contained in:
sagie gur ari 2020-02-05 19:14:39 +00:00
parent b26287573f
commit 2aaf866a30
2 changed files with 13 additions and 13 deletions

View file

@ -47,10 +47,10 @@
* [std::error::SetError (set_error)](#std__error__SetError) * [std::error::SetError (set_error)](#std__error__SetError)
* [std::error::SetExitOnError (exit_on_error, set_exit_on_error)](#std__error__SetExitOnError) * [std::error::SetExitOnError (exit_on_error, set_exit_on_error)](#std__error__SetExitOnError)
* [std::error::TriggerError (trigger_error)](#std__error__TriggerError) * [std::error::TriggerError (trigger_error)](#std__error__TriggerError)
* [std::flowcontroll::ForIn (for)](#std__flowcontroll__ForIn) * [std::flowcontrol::ForIn (for)](#std__flowcontrol__ForIn)
* [std::flowcontroll::Function (function, fn)](#std__flowcontroll__Function) * [std::flowcontrol::Function (function, fn)](#std__flowcontrol__Function)
* [std::flowcontroll::GoTo (goto)](#std__flowcontroll__GoTo) * [std::flowcontrol::GoTo (goto)](#std__flowcontrol__GoTo)
* [std::flowcontroll::If (if)](#std__flowcontroll__If) * [std::flowcontrol::If (if)](#std__flowcontrol__If)
* [std::fs::Append (appendfile)](#std__fs__Append) * [std::fs::Append (appendfile)](#std__fs__Append)
* [std::fs::CopyPath (cp)](#std__fs__CopyPath) * [std::fs::CopyPath (cp)](#std__fs__CopyPath)
* [std::fs::CreateDirectory (mkdir)](#std__fs__CreateDirectory) * [std::fs::CreateDirectory (mkdir)](#std__fs__CreateDirectory)
@ -1766,8 +1766,8 @@ assert_eq ${error} "my error message"
#### Aliases: #### Aliases:
trigger_error trigger_error
<a name="std__flowcontroll__ForIn"></a> <a name="std__flowcontrol__ForIn"></a>
## std::flowcontroll::ForIn ## std::flowcontrol::ForIn
```sh ```sh
args = array a b c args = array a b c
for arg in ${args} for arg in ${args}
@ -1817,8 +1817,8 @@ end
#### Aliases: #### Aliases:
for for
<a name="std__flowcontroll__Function"></a> <a name="std__flowcontrol__Function"></a>
## std::flowcontroll::Function ## std::flowcontrol::Function
```sh ```sh
function my_function function my_function
# function content # function content
@ -1909,8 +1909,8 @@ echo ${output}
#### Aliases: #### Aliases:
function, fn function, fn
<a name="std__flowcontroll__GoTo"></a> <a name="std__flowcontrol__GoTo"></a>
## std::flowcontroll::GoTo ## std::flowcontrol::GoTo
```sh ```sh
goto :label goto :label
``` ```
@ -1939,8 +1939,8 @@ echo bad
#### Aliases: #### Aliases:
goto goto
<a name="std__flowcontroll__If"></a> <a name="std__flowcontrol__If"></a>
## std::flowcontroll::If ## std::flowcontrol::If
```sh ```sh
if [command|value|condition] if [command|value|condition]
# commands # commands

View file

@ -8,7 +8,7 @@ use crate::utils::pckg;
use duckscript::types::command::Commands; use duckscript::types::command::Commands;
use duckscript::types::error::ScriptError; use duckscript::types::error::ScriptError;
static PACKAGE: &str = "flowcontroll"; static PACKAGE: &str = "flowcontrol";
pub(crate) fn load(commands: &mut Commands, parent: &str) -> Result<(), ScriptError> { pub(crate) fn load(commands: &mut Commands, parent: &str) -> Result<(), ScriptError> {
let package = pckg::concat(parent, PACKAGE); let package = pckg::concat(parent, PACKAGE);