Skip to content

Commit

Permalink
Remove leo example subcommand.
Browse files Browse the repository at this point in the history
Leave `examples` as a submodule for testing purposes,
but it should no longer be necessary for building Leo.
  • Loading branch information
mikebenfield committed Feb 3, 2025
1 parent 0e1f5ab commit 645579a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 213 deletions.
13 changes: 0 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,19 +274,6 @@ jobs:
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/leo-clean.sh
leo-example:
docker:
- image: cimg/rust:1.82
resource_class: xlarge
steps:
- attach_workspace:
at: /home/circleci/project/
- run:
name: leo example
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/leo-example.sh
test-examples:
docker:
- image: cimg/rust:1.82
Expand Down
41 changes: 0 additions & 41 deletions .circleci/leo-example.sh

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ We recommend installing Rust using [rustup](https://www.rustup.rs/). You can ins
We recommend installing Leo by building from the source code as follows:

```bash
# Download the source code and initialize the submodules
git clone --recurse-submodules https://github.com/ProvableHQ/leo
# Download the source code
git clone https://github.com/ProvableHQ/leo
cd leo

# Install 'leo'
Expand Down
6 changes: 0 additions & 6 deletions leo/cli/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ enum Commands {
#[clap(flatten)]
command: LeoNew,
},
#[clap(about = "Create a new Leo example package in a new directory")]
Example {
#[clap(flatten)]
command: LeoExample,
},
#[clap(about = "Run a program with input variables")]
Run {
#[clap(flatten)]
Expand Down Expand Up @@ -147,7 +142,6 @@ pub fn run_with_args(cli: CLI) -> Result<()> {
Commands::Query { command } => command.try_execute(context),
Commands::Clean { command } => command.try_execute(context),
Commands::Deploy { command } => command.try_execute(context),
Commands::Example { command } => command.try_execute(context),
Commands::Run { command } => command.try_execute(context),
Commands::Execute { command } => command.try_execute(context),
Commands::Remove { command } => command.try_execute(context),
Expand Down
148 changes: 0 additions & 148 deletions leo/cli/commands/example.rs

This file was deleted.

3 changes: 0 additions & 3 deletions leo/cli/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ pub use debug::LeoDebug;
pub mod deploy;
pub use deploy::Deploy;

pub mod example;
pub use example::LeoExample;

pub mod execute;
pub use execute::LeoExecute;

Expand Down

0 comments on commit 645579a

Please sign in to comment.