mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 12:13:41 +03:00
700e31f113
* fix leo execute command line argument parsing * add leo-examples integration test to ci and include leo execute commands * give leo-example.sh execute permission
42 lines
771 B
Bash
Executable File
42 lines
771 B
Bash
Executable File
(
|
|
# Create a new Leo lottery example program.
|
|
$LEO example lottery || exit
|
|
ls -la
|
|
cd lottery && ls -la
|
|
|
|
# Run the play function.
|
|
$LEO run play || exit
|
|
|
|
# Execute the play function.
|
|
$LEO execute play || exit
|
|
)
|
|
|
|
(
|
|
# Create a new Leo tictactoe example program.
|
|
$LEO example tictactoe || exit
|
|
ls -la
|
|
cd tictactoe && ls -la
|
|
|
|
# Create a new game.
|
|
$LEO run new || exit
|
|
|
|
# Run the make_move function.
|
|
$LEO run make_move || exit
|
|
|
|
# Execute the make_move function.
|
|
$LEO execute make_move || exit
|
|
)
|
|
|
|
(
|
|
#Create a new Leo token example program.
|
|
$LEO example token || exit
|
|
ls -la
|
|
cd token && ls -la
|
|
|
|
# Run the mint_public function.
|
|
$LEO run mint_public || exit
|
|
|
|
# Execute the mint_public function.
|
|
$LEO execute mint_public || exit
|
|
)
|