Skip to content

Commit

Permalink
Add documentation comments for Context.GroupName, Context.VirtualMach…
Browse files Browse the repository at this point in the history
…ineName
  • Loading branch information
telyn committed Feb 9, 2017
1 parent 22d7429 commit 13f0ad2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/bytemark/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (c *Context) FileContents(flagname string) string {
return ""
}

// GroupName returns the named flag as a lib.Groupname
func (c *Context) GroupName(flagname string) lib.GroupName {
gpNameFlag, ok := c.Context.Generic(flagname).(*GroupNameFlag)
if !ok {
Expand Down Expand Up @@ -128,6 +129,8 @@ func (c *Context) Size(flagname string) int {
}
return 0
}

// VirtualMachineName returns the named flag as a lib.VirtualMachineName
func (c *Context) VirtualMachineName(flagname string) lib.VirtualMachineName {
vmNameFlag, ok := c.Context.Generic(flagname).(*VirtualMachineNameFlag)
if !ok {
Expand Down

0 comments on commit 13f0ad2

Please sign in to comment.