Open Ph0enixKM opened 1 week ago
On https://github.com/Ph0enixKM/Amber/pull/185 I added is_root
and is_command
that I think that should be built-in commands.
The second one just check if a command exists.
I'm still thinking about that ORM style you suggested. To make such a nice way to compose commands would be a game changer
I think that we need to define built-in should be one shot actions
, instead ORM style should be more complex commands with various parameters.
The ORM style requires a Class engine in Amber but for that we can discuss in the other ticket.
we should also add [[
and [
as builtins for use like if [[ ... ]]
This issue is about implementing the following commands:
cd
(cd path: Text
->cd path
) failable: directory does not existmv
(mv a: Text, b: Text
->mv a b
) failable: no permissionsrm
(rm path: Text
->rm -rf path
) failable: no permissions / file does not exitsexit
(exit c: Num
exit c
)