@@ -15,7 +15,7 @@ let _jsonMode = false;
1515
1616export default async function rm ( options : Record < string , unknown > ) {
1717 const pathString = getOption < string > ( options , [ 'path' ] ) ;
18- const force = getOption < boolean > ( options , [ 'force' , 'f' , 'F' ] ) ;
18+ const force = getOption < boolean > ( options , [ 'force' , 'f' , 'F' , 'yes' , 'y' ] ) ;
1919 const recursive = ! ! getOption < boolean > ( options , [ 'recursive' , 'r' ] ) ;
2020 const jsonFlag = getOption < boolean > ( options , [ 'json' ] ) ;
2121 const format = jsonFlag
@@ -46,7 +46,7 @@ export default async function rm(options: Record<string, unknown>) {
4646 const rawEndsWithSlash = pathString . endsWith ( '/' ) ;
4747 if ( ! path && ! rawEndsWithSlash ) {
4848 if ( ! force ) {
49- requireInteractive ( 'Use --force to skip confirmation' ) ;
49+ requireInteractive ( 'Use --yes to skip confirmation' ) ;
5050 const confirmed = await confirm (
5151 `Are you sure you want to delete bucket '${ bucket } '?`
5252 ) ;
@@ -153,7 +153,7 @@ export default async function rm(options: Record<string, unknown>) {
153153 }
154154
155155 if ( ! force ) {
156- requireInteractive ( 'Use --force to skip confirmation' ) ;
156+ requireInteractive ( 'Use --yes to skip confirmation' ) ;
157157 const confirmed = await confirm (
158158 `Are you sure you want to delete ${ totalItems } object(s)?`
159159 ) ;
@@ -209,7 +209,7 @@ export default async function rm(options: Record<string, unknown>) {
209209 } else {
210210 // Remove single object
211211 if ( ! force ) {
212- requireInteractive ( 'Use --force to skip confirmation' ) ;
212+ requireInteractive ( 'Use --yes to skip confirmation' ) ;
213213 const confirmed = await confirm (
214214 `Are you sure you want to delete 't3://${ bucket } /${ path } '?`
215215 ) ;
0 commit comments