sunodo / sunodo

Sunodo monorepo
https://docs.sunodo.io
Apache License 2.0
21 stars 14 forks source link

sunodo shell|build passthrough some CLI arguments #451

Open endersonmaia opened 1 month ago

endersonmaia commented 1 month ago

📚 Context

The cartesi-machine command provides a series of CLI arguments that controls the machine execution during the build of the snapshot of interactive mode.

✔️ Solution

It should be possible to passthrough some (or all) cartesi-machine CLI arguments via sunodo [build|shell].

For ex.:

sunodo shell --append-entrypoint='export MYVAR=something'
Running in interactive mode!

         .
        / \
      /    \
\---/---\  /----\
 \       X       \
  \----/  \---/---\
       \    / CARTESI
        \ /   MACHINE
         '

dapp@cartesi-machine:~$ echo $MYVAR
something

📈 Subtasks

🎯 Definition of Done

endersonmaia commented 1 month ago

Related to #193.

tuler commented 1 month ago

I think we need to think well about how to expose the complexities of the cartesi-machine to the end-user. If it's an advance user he doesn't even need to use sunodo.

endersonmaia commented 1 month ago

I think we need to think well about how to expose the complexities of the cartesi-machine to the end-user. If it's an advance user he doesn't even need to use sunodo.

That's why I choose only the "simple" ones that are used to inject parameters into the machine.