@@ -3,50 +3,50 @@ use std::fmt::{Display, Formatter};
3
3
use std:: io:: { stdout, BufWriter , Write } ;
4
4
use std:: path:: { Path , PathBuf } ;
5
5
6
- use crate :: lib:: cli:: capture:: { CaptureCommand , CaptureSubcommand } ;
7
- use crate :: lib:: cli:: claims:: ClaimsCliCommand ;
8
- use crate :: lib:: cli:: get:: GetCommand ;
9
- use crate :: lib:: cli:: inspect:: InspectCliCommand ;
10
- use crate :: lib:: cli:: label:: LabelHostCommand ;
11
- use crate :: lib:: cli:: link:: LinkCommand ;
12
- use crate :: lib:: cli:: registry:: { RegistryPullCommand , RegistryPushCommand } ;
13
- use crate :: lib:: cli:: scale:: ScaleCommand ;
14
- use crate :: lib:: cli:: spy:: SpyCommand ;
15
- use crate :: lib:: cli:: start:: StartCommand ;
16
- use crate :: lib:: cli:: stop:: StopCommand ;
17
- use crate :: lib:: cli:: update:: UpdateCommand ;
18
- use crate :: lib:: cli:: { CommandOutput , OutputKind } ;
19
- use crate :: lib:: drain:: Drain as DrainSelection ;
20
- use crate :: lib:: plugin:: subcommand:: { DirMapping , SubcommandRunner } ;
21
6
use anyhow:: bail;
22
7
use clap:: { self , Arg , Command , FromArgMatches , Parser , Subcommand } ;
23
8
use console:: style;
24
9
use crossterm:: style:: Stylize ;
25
10
use serde_json:: json;
26
11
use tracing_subscriber:: EnvFilter ;
27
-
28
- use wash_cli:: app:: { self , AppCliCommand } ;
29
- use wash_cli:: build:: { self , BuildCommand } ;
30
- use wash_cli:: call:: { self , CallCli } ;
31
- use wash_cli:: cmd:: config:: { self , ConfigCliCommand } ;
32
- use wash_cli:: cmd:: dev:: { self , DevCommand } ;
33
- use wash_cli:: cmd:: link;
34
- use wash_cli:: cmd:: up:: { self , UpCommand } ;
35
- use wash_cli:: cmd:: wit:: { self , WitCommand } ;
36
- use wash_cli:: common;
37
- use wash_cli:: completions:: { self , CompletionOpts } ;
38
- use wash_cli:: config:: { NATS_SERVER_VERSION , WADM_VERSION , WASMCLOUD_HOST_VERSION } ;
39
- use wash_cli:: ctx:: { self , CtxCommand } ;
40
- use wash_cli:: down:: { self , DownCommand } ;
41
- use wash_cli:: drain;
42
- use wash_cli:: generate:: { self , NewCliCommand } ;
43
- use wash_cli:: keys:: { self , KeysCliCommand } ;
44
- use wash_cli:: par:: { self , ParCliCommand } ;
45
- use wash_cli:: plugin:: { self , PluginCommand } ;
46
- use wash_cli:: secrets:: { self , SecretsCliCommand } ;
47
- use wash_cli:: style:: WASH_CLI_STYLE ;
48
- use wash_cli:: ui:: { self , UiCommand } ;
49
- use wash_cli:: util:: ensure_plugin_dir;
12
+ use wash:: lib:: cli:: capture:: { CaptureCommand , CaptureSubcommand } ;
13
+ use wash:: lib:: cli:: claims:: ClaimsCliCommand ;
14
+ use wash:: lib:: cli:: get:: GetCommand ;
15
+ use wash:: lib:: cli:: inspect:: InspectCliCommand ;
16
+ use wash:: lib:: cli:: label:: LabelHostCommand ;
17
+ use wash:: lib:: cli:: link:: LinkCommand ;
18
+ use wash:: lib:: cli:: registry:: { RegistryPullCommand , RegistryPushCommand } ;
19
+ use wash:: lib:: cli:: scale:: ScaleCommand ;
20
+ use wash:: lib:: cli:: spy:: SpyCommand ;
21
+ use wash:: lib:: cli:: start:: StartCommand ;
22
+ use wash:: lib:: cli:: stop:: StopCommand ;
23
+ use wash:: lib:: cli:: update:: UpdateCommand ;
24
+ use wash:: lib:: cli:: { CommandOutput , OutputKind } ;
25
+ use wash:: lib:: drain:: Drain as DrainSelection ;
26
+ use wash:: lib:: plugin:: subcommand:: { DirMapping , SubcommandRunner } ;
27
+
28
+ use wash:: cli:: app:: { self , AppCliCommand } ;
29
+ use wash:: cli:: build:: { self , BuildCommand } ;
30
+ use wash:: cli:: call:: { self , CallCli } ;
31
+ use wash:: cli:: cmd:: config:: { self , ConfigCliCommand } ;
32
+ use wash:: cli:: cmd:: dev:: { self , DevCommand } ;
33
+ use wash:: cli:: cmd:: link;
34
+ use wash:: cli:: cmd:: up:: { self , UpCommand } ;
35
+ use wash:: cli:: cmd:: wit:: { self , WitCommand } ;
36
+ use wash:: cli:: common;
37
+ use wash:: cli:: completions:: { self , CompletionOpts } ;
38
+ use wash:: cli:: config:: { NATS_SERVER_VERSION , WADM_VERSION , WASMCLOUD_HOST_VERSION } ;
39
+ use wash:: cli:: ctx:: { self , CtxCommand } ;
40
+ use wash:: cli:: down:: { self , DownCommand } ;
41
+ use wash:: cli:: drain;
42
+ use wash:: cli:: generate:: { self , NewCliCommand } ;
43
+ use wash:: cli:: keys:: { self , KeysCliCommand } ;
44
+ use wash:: cli:: par:: { self , ParCliCommand } ;
45
+ use wash:: cli:: plugin:: { self , PluginCommand } ;
46
+ use wash:: cli:: secrets:: { self , SecretsCliCommand } ;
47
+ use wash:: cli:: style:: WASH_CLI_STYLE ;
48
+ use wash:: cli:: ui:: { self , UiCommand } ;
49
+ use wash:: cli:: util:: ensure_plugin_dir;
50
50
51
51
#[ derive( Clone ) ]
52
52
struct HelpTopic {
@@ -548,13 +548,13 @@ async fn main() {
548
548
if !cli. experimental {
549
549
experimental_error_message ( "capture" )
550
550
} else if let Some ( CaptureSubcommand :: Replay ( cmd) ) = capture_cli. replay {
551
- crate :: lib:: cli:: capture:: handle_replay_command ( cmd) . await
551
+ wash :: lib:: cli:: capture:: handle_replay_command ( cmd) . await
552
552
} else {
553
- crate :: lib:: cli:: capture:: handle_command ( capture_cli) . await
553
+ wash :: lib:: cli:: capture:: handle_command ( capture_cli) . await
554
554
}
555
555
}
556
556
CliCommand :: Claims ( claims_cli) => {
557
- crate :: lib:: cli:: claims:: handle_command ( claims_cli, output_kind) . await
557
+ wash :: lib:: cli:: claims:: handle_command ( claims_cli, output_kind) . await
558
558
}
559
559
CliCommand :: Completions ( completions_cli) => {
560
560
completions:: handle_command ( completions_cli, Cli :: command ( ) )
@@ -566,7 +566,7 @@ async fn main() {
566
566
CliCommand :: Drain ( drain_cli) => drain:: handle_command ( drain_cli) ,
567
567
CliCommand :: Get ( get_cli) => common:: get_cmd:: handle_command ( get_cli, output_kind) . await ,
568
568
CliCommand :: Inspect ( inspect_cli) => {
569
- crate :: lib:: cli:: inspect:: handle_command ( inspect_cli, output_kind) . await
569
+ wash :: lib:: cli:: inspect:: handle_command ( inspect_cli, output_kind) . await
570
570
}
571
571
CliCommand :: Keys ( keys_cli) => keys:: handle_command ( keys_cli) ,
572
572
CliCommand :: Link ( link_cli) => link:: invoke ( link_cli, output_kind) . await ,
@@ -583,7 +583,7 @@ async fn main() {
583
583
if !cli. experimental {
584
584
experimental_error_message ( "spy" )
585
585
} else {
586
- crate :: lib:: cli:: spy:: handle_command ( spy_cli) . await
586
+ wash :: lib:: cli:: spy:: handle_command ( spy_cli) . await
587
587
}
588
588
}
589
589
CliCommand :: Scale ( scale_cli) => {
@@ -701,7 +701,7 @@ async fn load_plugins() -> Option<(SubcommandRunner, PathBuf)> {
701
701
}
702
702
} ;
703
703
704
- let plugins = match wash_cli :: util:: load_plugins ( & plugin_dir) . await {
704
+ let plugins = match wash :: cli :: util:: load_plugins ( & plugin_dir) . await {
705
705
Ok ( plugins) => plugins,
706
706
Err ( e) => {
707
707
tracing:: error!( err = ?e, "Could not load wash plugins" ) ;
0 commit comments