Skip to content

Commit

Permalink
chores(cli): adds aliases and tree to wiki (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeremWD authored Nov 22, 2023
1 parent 5f5183e commit 9d61c1b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions wiki/CLI-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- [Get object/s](#get-objects)
- [Ls object](#ls-object)
- [Filter by tag](#filter-by-tag)
- [Tree](#tree)
- [Delete object](#delete-object)
- [Focus an object](#focus-an-object)
- [Create commands](#create-commands)
Expand Down Expand Up @@ -64,6 +65,7 @@
- [Control flow](#control-flow)
- [Conditions](#conditions)
- [Loops](#loops)
- [Aliases](#aliases)
- [Examples](#examples)


Expand Down Expand Up @@ -219,6 +221,16 @@ By adding the filter tag=[tag_slug] to the ls, we can obtain the children that h
ls [path] tag=[tag_slug]
```

## Tree

To print the hierarchy below a path, at a certain depth :

```
tree // default path will be the current path (.)
tree [path] // default depth will be 1
tree [path] [depth]
```

## Delete object
Works with single or multi selection.
```
Expand Down Expand Up @@ -619,6 +631,16 @@ titi
3^2 = 9
```

## Aliases
```
>alias pi2 { .var: i2 = $(($i * $i)) ; print $i^2 = $i2 }
>for i in 0..3 { pi2 }
0^2 = 0
1^2 = 1
2^2 = 4
3^2 = 9
```

# Examples
```
+tn:DEMO@ffffff
Expand Down

0 comments on commit 9d61c1b

Please sign in to comment.