Skip to content

Commit 765f0a3

Browse files
authored
feat: Enable command hints in the cli (#1403)
Enable printing of the command hints by default in all commands. Change-Id: I1e835ba8e32b7abc5094abcb28c130db7d508d5d Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com> Changes are triggered by https://review.opendev.org/959701
1 parent b0d2ce9 commit 765f0a3

File tree

1,298 files changed

+2596
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,298 files changed

+2596
-0
lines changed

openstack_cli/src/block_storage/v3/attachment/create_327.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ impl AttachmentCommand {
175175

176176
let data = ep.query_async(client).await?;
177177
op.output_single::<AttachmentResponse>(data)?;
178+
// Show command specific hints
179+
op.show_command_hint()?;
178180
Ok(())
179181
}
180182
}

openstack_cli/src/block_storage/v3/attachment/create_354.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ impl AttachmentCommand {
198198

199199
let data = ep.query_async(client).await?;
200200
op.output_single::<AttachmentResponse>(data)?;
201+
// Show command specific hints
202+
op.show_command_hint()?;
201203
Ok(())
202204
}
203205
}

openstack_cli/src/block_storage/v3/attachment/delete.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ impl AttachmentCommand {
8888
.build()
8989
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;
9090
openstack_sdk::api::ignore(ep).query_async(client).await?;
91+
// Show command specific hints
92+
op.show_command_hint()?;
9193
Ok(())
9294
}
9395
}

openstack_cli/src/block_storage/v3/attachment/list.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ impl AttachmentsCommand {
148148
.query_async(client)
149149
.await?;
150150
op.output_list::<AttachmentResponse>(data)?;
151+
// Show command specific hints
152+
op.show_command_hint()?;
151153
Ok(())
152154
}
153155
}

openstack_cli/src/block_storage/v3/attachment/os_complete.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ impl AttachmentCommand {
8383
.build()
8484
.map_err(|x| OpenStackCliError::EndpointBuild(x.to_string()))?;
8585
openstack_sdk::api::ignore(ep).query_async(client).await?;
86+
// Show command specific hints
87+
op.show_command_hint()?;
8688
Ok(())
8789
}
8890
}

openstack_cli/src/block_storage/v3/attachment/set_327.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ impl AttachmentCommand {
131131

132132
let data = ep.query_async(client).await?;
133133
op.output_single::<AttachmentResponse>(data)?;
134+
// Show command specific hints
135+
op.show_command_hint()?;
134136
Ok(())
135137
}
136138
}

openstack_cli/src/block_storage/v3/attachment/show.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ impl AttachmentCommand {
8383

8484
let data = ep.query_async(client).await?;
8585
op.output_single::<AttachmentResponse>(data)?;
86+
// Show command specific hints
87+
op.show_command_hint()?;
8688
Ok(())
8789
}
8890
}

openstack_cli/src/block_storage/v3/availability_zone/list.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ impl AvailabilityZonesCommand {
7676

7777
let data: Vec<serde_json::Value> = ep.query_async(client).await?;
7878
op.output_list::<AvailabilityZoneResponse>(data)?;
79+
// Show command specific hints
80+
op.show_command_hint()?;
7981
Ok(())
8082
}
8183
}

openstack_cli/src/block_storage/v3/backup/create_30.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ impl BackupCommand {
170170

171171
let data = ep.query_async(client).await?;
172172
op.output_single::<BackupResponse>(data)?;
173+
// Show command specific hints
174+
op.show_command_hint()?;
173175
Ok(())
174176
}
175177
}

openstack_cli/src/block_storage/v3/backup/create_343.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ impl BackupCommand {
181181

182182
let data = ep.query_async(client).await?;
183183
op.output_single::<BackupResponse>(data)?;
184+
// Show command specific hints
185+
op.show_command_hint()?;
184186
Ok(())
185187
}
186188
}

0 commit comments

Comments
 (0)