Skip to content

Commit

Permalink
add confirmation for delete command
Browse files Browse the repository at this point in the history
  • Loading branch information
jsntcy committed Jan 19, 2020
1 parent e1ae174 commit 5407969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/azure-cli/azure/cli/command_modules/storage/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,10 @@
examples:
- name: Create a new Azure file share 'MyFileShare' with metadata and quota as 10 GB under the storage account 'mystorageaccount'(account name) in resource group 'MyResourceGroup'.
text: az storage share-rm create -g MyResourceGroup --storage-account mystorageaccount --name MyFileShare --quota 10 --metadata key1=value1 key2=value2
- name: Create a new Azure file share 'MyFileShare' with metadata and quota as 6000 GB under the storage account 'mystorageaccount'(account name) which enables large file share in resource group 'MyResourceGroup'.
text: |
az storage account update -g MyResourceGroup --name mystorageaccount --enable-large-file-share
az storage share-rm create -g MyResourceGroup --storage-account mystorageaccount --name MyFileShare --quota 6000 --metadata key1=value1 key2=value2
- name: Create a new Azure file share 'MyFileShare' with metadata and quota as 10 GB under the storage account 'mystorageaccount' (account id).
text: az storage share-rm create --storage-account mystorageaccount --name MyFileShare --quota 10 --metadata key1=value1 key2=value2
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT
resource_type=ResourceType.MGMT_STORAGE),
resource_type=ResourceType.MGMT_STORAGE, min_api='2019-04-01', is_preview=True) as g:
g.command('create', 'create')
g.command('delete', 'delete')
g.command('delete', 'delete', confirmation=True)
g.custom_command('exists', '_file_share_exists', transform=create_boolean_result_output_transformer('exists'))
g.command('list', 'list')
g.show_command('show', 'get')
Expand Down

0 comments on commit 5407969

Please sign in to comment.