Skip to content

Commit

Permalink
cli: make commands sub modules private
Browse files Browse the repository at this point in the history
We've removed most of the deprecated commands.
  • Loading branch information
yuja committed Jan 6, 2025
1 parent bcfa2b1 commit 556ef26
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
24 changes: 12 additions & 12 deletions cli/src/commands/debug/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod copy_detection;
pub mod fileset;
pub mod index;
pub mod local_working_copy;
pub mod operation;
pub mod reindex;
pub mod revset;
pub mod snapshot;
pub mod template;
pub mod tree;
pub mod watchman;
pub mod working_copy;
mod copy_detection;
mod fileset;
mod index;
mod local_working_copy;
mod operation;
mod reindex;
mod revset;
mod snapshot;
mod template;
mod tree;
mod watchman;
mod working_copy;

use std::any::Any;
use std::fmt::Debug;
Expand Down
10 changes: 5 additions & 5 deletions cli/src/commands/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod annotate;
pub mod chmod;
pub mod list;
pub mod show;
pub mod track;
mod annotate;
mod chmod;
mod list;
mod show;
mod track;
pub mod untrack;

use crate::cli_util::CommandHelper;
Expand Down
2 changes: 1 addition & 1 deletion cli/src/commands/git/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub fn cmd_git_init(
Ok(())
}

pub fn do_init(
fn do_init(
ui: &mut Ui,
command: &CommandHelper,
workspace_root: &Path,
Expand Down
16 changes: 8 additions & 8 deletions cli/src/commands/git/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod clone;
pub mod export;
pub mod fetch;
pub mod import;
pub mod init;
pub mod push;
pub mod remote;
pub mod submodule;
mod clone;
mod export;
mod fetch;
mod import;
mod init;
mod push;
mod remote;
mod submodule;

use std::path::Path;

Expand Down
10 changes: 5 additions & 5 deletions cli/src/commands/git/remote/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod add;
pub mod list;
pub mod remove;
pub mod rename;
pub mod set_url;
mod add;
mod list;
mod remove;
mod rename;
mod set_url;

use clap::Subcommand;

Expand Down

0 comments on commit 556ef26

Please sign in to comment.