Intro
The simplest arc program would look like this
Which we can then execute directly!Let's break this down to better understand what exactly is going on.
@arc.command()
is a Python decorator that transforms a function into an arc command.def main()
is just a simple Python function. The function can also declare parameters.main()
while this make look like we're calling themain
function, because the function has been transformed into a command, we're actualy executing the command.