leo/.circleci/leo-example.sh
Collin Chin 700e31f113
fix leo execute command line argument parsing (#2530)
* 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
2023-08-15 13:59:50 -07:00

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
)