mirror of https://github.com/vinc/moros.git
Update shell doc
This commit is contained in:
parent
3b638486a3
commit
00a028150a
|
@ -14,7 +14,7 @@
|
|||
- Add heap allocation
|
||||
- Add autocompletion to shell
|
||||
|
||||
## 0.1.0 (2019-01-17)
|
||||
## 0.1.0 (2019-01-18)
|
||||
- Add shell
|
||||
- Add editor
|
||||
- Add filesystem
|
||||
|
|
47
doc/shell.md
47
doc/shell.md
|
@ -5,76 +5,87 @@
|
|||
The main commands have a long name, a one-letter alias, and may have
|
||||
additional common aliases.
|
||||
|
||||
**Alias** commands:
|
||||
<!--
|
||||
**Alias** command:
|
||||
|
||||
```
|
||||
alias d delete
|
||||
alias rm delete
|
||||
```
|
||||
|
||||
**Append** to files:
|
||||
**Append** to file:
|
||||
|
||||
```
|
||||
a a.txt
|
||||
append a.txt
|
||||
```
|
||||
-->
|
||||
|
||||
**Delete** files:
|
||||
**Delete** file:
|
||||
|
||||
```
|
||||
d a.txt
|
||||
del a.txt
|
||||
delete a.txt
|
||||
rm a.txt
|
||||
```
|
||||
|
||||
**Copy** files:
|
||||
**Copy** file:
|
||||
|
||||
```
|
||||
c a.txt b.txt
|
||||
cp a.txt b.txt
|
||||
copy a.txt b.txt
|
||||
```
|
||||
|
||||
**Move** files:
|
||||
**Move** file:
|
||||
|
||||
```
|
||||
m a.txt b.txt
|
||||
mv a.txt b.txt
|
||||
move a.txt b.txt
|
||||
```
|
||||
|
||||
**Print** strings:
|
||||
**Print** string:
|
||||
|
||||
```
|
||||
p "Hi"
|
||||
print "Hi"
|
||||
echo "Hi"
|
||||
```
|
||||
|
||||
**Read** files:
|
||||
**Read** file:
|
||||
|
||||
```
|
||||
r a.txt
|
||||
read a.txt
|
||||
cat a.txt
|
||||
```
|
||||
|
||||
**Write** files:
|
||||
**Write** file:
|
||||
|
||||
```
|
||||
w a.txt
|
||||
write a.txt
|
||||
```
|
||||
|
||||
**Write** dirs:
|
||||
**Write** dir:
|
||||
|
||||
```
|
||||
w /usr/v/ # with a trailing slash to create a dir instead of a file
|
||||
wd /usr/v # no ambiguity here so no trailing slash required
|
||||
write-dir /usr/v
|
||||
write /usr/alice/ # with a trailing slash to create a dir instead of a file
|
||||
```
|
||||
|
||||
**List** files in dir:
|
||||
|
||||
```
|
||||
list /usr/alice
|
||||
```
|
||||
|
||||
When executed without arguments, this command will list the files of the
|
||||
current directory.
|
||||
|
||||
**Go to** dir:
|
||||
|
||||
```
|
||||
goto /usr/alice
|
||||
```
|
||||
|
||||
When executed without arguments, this command will print the current directory.
|
||||
|
||||
## Combiners (TODO)
|
||||
|
||||
The `&` and `|` symbols are used only for combiners so there's no needs to
|
||||
|
|
Loading…
Reference in New Issue