File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use semver::Version;
13
13
use tower:: ServiceExt ;
14
14
15
15
use crate :: command:: dev:: router:: config:: { RouterAddress , RouterHost , RouterPort } ;
16
+ use super :: version_upgrade_message:: VersionUpgradeMessage ;
16
17
use crate :: command:: dev:: router:: hot_reload:: HotReloadConfigOverrides ;
17
18
use crate :: command:: dev:: router:: run:: RunRouter ;
18
19
use crate :: command:: dev:: { OVERRIDE_DEV_COMPOSITION_VERSION , OVERRIDE_DEV_ROUTER_VERSION } ;
@@ -39,10 +40,7 @@ impl Dev {
39
40
override_install_path : Option < Utf8PathBuf > ,
40
41
client_config : StudioClientConfig ,
41
42
) -> RoverResult < RoverOutput > {
42
- warnln ! (
43
- "Do not run this command in production! It is intended for local development only.\n "
44
- ) ;
45
-
43
+ VersionUpgradeMessage :: print ( ) ;
46
44
let elv2_license_accepter = self . opts . plugin_opts . elv2_license_accepter ;
47
45
let skip_update = self . opts . plugin_opts . skip_update ;
48
46
let read_file_impl = FsReadFile :: default ( ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ mod do_dev;
9
9
mod no_dev;
10
10
#[ cfg( feature = "composition-js" ) ]
11
11
mod router;
12
+ mod version_upgrade_message;
12
13
13
14
use std:: net:: IpAddr ;
14
15
Original file line number Diff line number Diff line change
1
+ #![ warn( missing_docs) ]
2
+ use rover_std:: Style ;
3
+
4
+ pub struct VersionUpgradeMessage { }
5
+
6
+ impl VersionUpgradeMessage {
7
+ pub fn print ( ) {
8
+ eprintln ! ( ) ;
9
+ eprintln ! (
10
+ "{}" ,
11
+ Style :: WarningPrefix . paint( "** Notice: Changes in This Release! **" )
12
+ ) ;
13
+ eprintln ! ( "This version includes significant updates to the `rover dev` command." ) ;
14
+ eprintln ! ( "We highly recommend reviewing the updated documentation to ensure a smooth experience." ) ;
15
+ eprintln ! ( "Read more: https://www.apollographql.com/docs/rover/commands/dev" ) ;
16
+ eprintln ! ( ) ;
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments