Skip to content

Commit d3789f1

Browse files
committed
add cloud.template.restore plan
1 parent 769391f commit d3789f1

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Current commands supported in a `plan` file:
7676
- cloud server create
7777
- cloud server resize
7878
- cloud template restore
79+
- ssh
7980

8081
Example:
8182

cmd/cloudTemplateRestore.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,19 @@ import (
2626
var cloudTemplateRestoreCmd = &cobra.Command{
2727
Use: "restore",
2828
Short: "Restore a Cloud Template on a Cloud Server",
29-
Long: `Restore a Cloud Template on a Cloud Server.`,
29+
Long: `Restore a Cloud Template on a Cloud Server.
30+
31+
Plan Example:
32+
33+
---
34+
cloud:
35+
template:
36+
restore:
37+
- uniq-id: ABC123
38+
template: DEBIAN_10_UNMANAGED
39+
40+
lw plan --file cloud.template.restore.yaml
41+
`,
3042
Run: func(cmd *cobra.Command, args []string) {
3143
params := &instance.CloudTemplateRestoreParams{}
3244

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
cloud:
3+
template:
4+
restore:
5+
- uniq-id: ABC123
6+
template: DEBIAN_10_UNMANAGED

0 commit comments

Comments
 (0)