Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-0x committed Jan 19, 2024
1 parent 8454b92 commit 2c3d3c2
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion crates/sozo/src/commands/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl AuthArgs {
let env_metadata = if config.manifest_path().exists() {
let ws = scarb::ops::read_workspace(config.manifest_path(), config)?;

// TODO: Check the updated scarb way to read profile specific values
dojo_metadata_from_workspace(&ws).and_then(|inner| inner.env().cloned())
} else {
None
Expand Down
1 change: 0 additions & 1 deletion crates/sozo/src/commands/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ impl EventsArgs {
let env_metadata = if config.manifest_path().exists() {
let ws = scarb::ops::read_workspace(config.manifest_path(), config)?;

// TODO: Check the updated scarb way to read profile specific values
dojo_metadata_from_workspace(&ws).and_then(|inner| inner.env().cloned())
} else {
None
Expand Down
1 change: 0 additions & 1 deletion crates/sozo/src/commands/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ impl ExecuteArgs {
let env_metadata = if config.manifest_path().exists() {
let ws = scarb::ops::read_workspace(config.manifest_path(), config)?;

// TODO: Check the updated scarb way to read profile specific values
dojo_metadata_from_workspace(&ws).and_then(|inner| inner.env().cloned())
} else {
None
Expand Down
3 changes: 1 addition & 2 deletions crates/sozo/src/commands/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::ops::migration;
pub struct MigrateArgs {
#[arg(short, long)]
#[arg(help = "Perform a dry run and outputs the plan to be executed.")]
// TODO: i think dry_run would be more descriptive
pub plan: bool,

#[arg(long)]
Expand Down Expand Up @@ -56,8 +57,6 @@ impl MigrateArgs {
)?;
}

// TODO: Check the updated scarb way to read profile specific values

ws.config().tokio_handle().block_on(migration::execute(&ws, self, target_dir))?;

Ok(())
Expand Down
1 change: 0 additions & 1 deletion crates/sozo/src/commands/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ impl ModelArgs {
let env_metadata = if config.manifest_path().exists() {
let ws = scarb::ops::read_workspace(config.manifest_path(), config)?;

// TODO: Check the updated scarb way to read profile specific values
dojo_metadata_from_workspace(&ws).and_then(|inner| inner.env().cloned())
} else {
None
Expand Down
1 change: 0 additions & 1 deletion crates/sozo/src/commands/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl RegisterArgs {
let env_metadata = if config.manifest_path().exists() {
let ws = scarb::ops::read_workspace(config.manifest_path(), config)?;

// TODO: Check the updated scarb way to read profile specific values
dojo_metadata_from_workspace(&ws).and_then(|inner| inner.env().cloned())
} else {
None
Expand Down

0 comments on commit 2c3d3c2

Please sign in to comment.