Skip to content

Commit

Permalink
chore(cli): remove android open and ios open commands (#10480)
Browse files Browse the repository at this point in the history
It is recommended to use `[android|ios] dev --open` or `[android|ios] build --open` instead as it properly sets up the requirements for developing and building apps with Tauri.
  • Loading branch information
lucasfernog authored Aug 5, 2024
1 parent e2dc76c commit a3cd977
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 81 deletions.
6 changes: 6 additions & 0 deletions .changes/remove-open-command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:changes
"@tauri-apps/cli": patch:changes
---

Removed the `[android|ios] open` command. It is recommended to use `[android|ios] dev --open` or `[android|ios] build --open` instead.
4 changes: 0 additions & 4 deletions tooling/cli/src/mobile/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ use crate::{helpers::config::Config as TauriConfig, Result};
mod android_studio_script;
mod build;
mod dev;
mod open;
pub(crate) mod project;

#[derive(Parser)]
Expand Down Expand Up @@ -67,8 +66,6 @@ pub struct InitOptions {
#[derive(Subcommand)]
enum Commands {
Init(InitOptions),
/// Open project in Android Studio
Open,
Dev(dev::Options),
Build(build::Options),
#[clap(hide(true))]
Expand All @@ -84,7 +81,6 @@ pub fn command(cli: Cli, verbosity: u8) -> Result<()> {
false,
options.skip_targets_install,
)?,
Commands::Open => open::command()?,
Commands::Dev(options) => dev::command(options, noise_level)?,
Commands::Build(options) => build::command(options, noise_level)?,
Commands::AndroidStudioScript(options) => android_studio_script::command(options)?,
Expand Down
36 changes: 0 additions & 36 deletions tooling/cli/src/mobile/android/open.rs

This file was deleted.

4 changes: 0 additions & 4 deletions tooling/cli/src/mobile/ios/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ use std::{

mod build;
mod dev;
mod open;
pub(crate) mod project;
mod xcode_script;

Expand Down Expand Up @@ -79,8 +78,6 @@ pub struct InitOptions {
#[derive(Subcommand)]
enum Commands {
Init(InitOptions),
/// Open project in Xcode
Open,
Dev(dev::Options),
Build(build::Options),
#[clap(hide(true))]
Expand All @@ -96,7 +93,6 @@ pub fn command(cli: Cli, verbosity: u8) -> Result<()> {
options.reinstall_deps,
options.skip_targets_install,
)?,
Commands::Open => open::command()?,
Commands::Dev(options) => dev::command(options, noise_level)?,
Commands::Build(options) => build::command(options, noise_level)?,
Commands::XcodeScript(options) => xcode_script::command(options)?,
Expand Down
37 changes: 0 additions & 37 deletions tooling/cli/src/mobile/ios/open.rs

This file was deleted.

0 comments on commit a3cd977

Please sign in to comment.