File tree 1 file changed +15
-5
lines changed
crates/cli/src/commands/components
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ pub struct Options {
12
12
///
13
13
/// Defaults to the user "self" org
14
14
pub organization : Option < String > ,
15
+ #[ arg( long, conflicts_with = "private" ) ]
16
+ pub public : bool ,
17
+
18
+ #[ arg( long, conflicts_with = "public" ) ]
19
+ pub private : bool ,
20
+
21
+ pub changelog : Option < String > ,
15
22
}
16
23
17
24
pub async fn run ( opts : Options ) -> anyhow:: Result < ( ) > {
@@ -183,11 +190,14 @@ pub async fn run(opts: Options) -> anyhow::Result<()> {
183
190
) ;
184
191
}
185
192
186
- let changelog = Editor :: new ( "Describe the new version changelog (optional)" )
187
- . with_help_message (
188
- "Type (e) to open the default editor. Use the EDITOR env variable to change it." ,
189
- )
190
- . prompt_skippable ( ) ?;
193
+ let changelog = match opts. changelog {
194
+ Some ( changelog) => Some ( changelog) ,
195
+ None => Editor :: new ( "Describe the new version changelog (optional)" )
196
+ . with_help_message (
197
+ "Type (e) to open the default editor. Use the EDITOR env variable to change it." ,
198
+ )
199
+ . prompt_skippable ( ) ?,
200
+ } ;
191
201
192
202
let confirm = Confirm :: new ( & format ! (
193
203
"Ready to push {}. Confirm?" ,
You can’t perform that action at this time.
0 commit comments