File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Possible log types:
15
15
16
16
- [ changed] ` drone new ` generates a more IDE-friendly project with all rustflags
17
17
stored in ` .cargo/config `
18
+ - [ deprecated] ` drone env ` command is now deprecated
18
19
19
20
### v0.13.0 (2020-11-28)
20
21
Original file line number Diff line number Diff line change 1
1
//! `drone env` command.
2
2
3
- use crate :: cli:: EnvCmd ;
3
+ use crate :: { cli:: EnvCmd , color:: Color } ;
4
+ use ansi_term:: Color :: Yellow ;
4
5
use anyhow:: { anyhow, bail, Result } ;
5
6
use std:: { env, os:: unix:: process:: CommandExt , process:: Command } ;
6
7
7
8
/// Runs `drone env` command.
8
- pub fn run ( cmd : EnvCmd ) -> Result < ( ) > {
9
+ pub fn run ( cmd : EnvCmd , color : Color ) -> Result < ( ) > {
10
+ eprintln ! ( "{}: `drone env` command is deprecated" , color. bold_fg( "warning" , Yellow ) ) ;
9
11
let EnvCmd { target, command } = cmd;
10
12
let mut iter = command. iter ( ) ;
11
13
if let Some ( command) = iter. next ( ) {
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ impl Cli {
80
80
. filter ( None , Level :: Warn . to_level_filter ( ) )
81
81
. try_init ( ) ?;
82
82
match cmd {
83
- Cmd :: Env ( cmd) => cmd:: env ( cmd) ,
83
+ Cmd :: Env ( cmd) => cmd:: env ( cmd, color ) ,
84
84
Cmd :: Flash ( cmd) => cmd:: flash ( cmd) ,
85
85
Cmd :: Gdb ( cmd) => cmd:: gdb ( cmd) ,
86
86
Cmd :: Heap ( cmd) => cmd:: heap ( cmd, color) ,
You can’t perform that action at this time.
0 commit comments