Skip to content

Commit

Permalink
Merge pull request #89 from displague/fix-docs-checks
Browse files Browse the repository at this point in the history
Fix docs checks
  • Loading branch information
displague authored Sep 28, 2020
2 parents 299c3fc + 00e8cfc commit 5ee1de5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
env:
PACKET_TOKEN: bogus
- name: Detect Uncommitted Docs
run: git diff docs
run: git diff --exit-code docs
4 changes: 2 additions & 2 deletions cmd/create_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ func init() {

createDeviceCmd.Flags().StringVarP(&storage, "storage", "s", "", "UUID of the storage")
createDeviceCmd.Flags().StringVarP(&ipxescripturl, "ipxe-script-url", "i", "", "URL to the iPXE script")
createDeviceCmd.Flags().StringVarP(&userdata, "userdata", "u", "", "User data")
createDeviceCmd.Flags().StringVarP(&userdataFile, "userdata-file", "", "", "Filename to read Userdata from")
createDeviceCmd.Flags().StringVarP(&userdata, "userdata", "u", "", "Userdata for device initialization (can not be used with --userdata-file)")
createDeviceCmd.Flags().StringVarP(&userdataFile, "userdata-file", "", "", "Path to a userdata file for device initialization (can not be used with --userdata)")
createDeviceCmd.Flags().StringVarP(&customdata, "customdata", "c", "", "Custom data")
createDeviceCmd.Flags().StringSliceVarP(&tags, "tags", "t", []string{}, `Tags for the device: --tags="tag1,tag2"`)
createDeviceCmd.Flags().IntVarP(&publicIPv4SubnetSize, "public-ipv4-subnet-size", "v", 0, "Size of the public IPv4 subnet")
Expand Down
3 changes: 2 additions & 1 deletion docs/packet_device_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ packet device create [flags]
-s, --storage string UUID of the storage
-t, --tags strings Tags for the device: --tags="tag1,tag2"
-T, --termination-time string Device termination time: --termination-time="15:04:05"
-u, --userdata string User data
-u, --userdata string Userdata for device initialization (can not be used with --userdata-file)
--userdata-file string Path to a userdata file for device initialization (can not be used with --userdata)
```

### Options inherited from parent commands
Expand Down

0 comments on commit 5ee1de5

Please sign in to comment.