Skip to content

Commit

Permalink
Merge pull request #782 from awalvie/yaml-support-network-acl-create
Browse files Browse the repository at this point in the history
incus/network_acl: Add cmd.Example for network acl create
  • Loading branch information
stgraber committed Apr 23, 2024
2 parents f256034 + 9f1322e commit 809e6b3
Show file tree
Hide file tree
Showing 12 changed files with 761 additions and 665 deletions.
4 changes: 4 additions & 0 deletions cmd/incus/network_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ func (c *cmdNetworkACLCreate) Command() *cobra.Command {
cmd.Use = usage("create", i18n.G("[<remote>:]<ACL> [key=value...]"))
cmd.Short = i18n.G("Create new network ACLs")
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Create new network ACLs"))
cmd.Example = cli.FormatSection("", i18n.G(`incus network acl create a1
incus network acl create a1 < config.yaml
Create network acl with configuration from config.yaml`))

cmd.RunE = c.Run

Expand Down
Loading

0 comments on commit 809e6b3

Please sign in to comment.