Skip to content

Commit

Permalink
hdiutil: sort by alphabetical order
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <[email protected]>
  • Loading branch information
zchee committed Apr 21, 2017
1 parent 147609c commit 7c8633f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions hdiutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ func (e EncryptionType) String() string {
}

func (e EncryptionType) attachFlag() []string { return stringFlag("encryption", e.String()) }
func (e EncryptionType) verifyFlag() []string { return stringFlag("encryption", e.String()) }
func (e EncryptionType) convertFlag() []string { return stringFlag("encryption", e.String()) }
func (e EncryptionType) makehybridFlag() []string { return stringFlag("encryption", e.String()) }
func (e EncryptionType) verifyFlag() []string { return stringFlag("encryption", e.String()) }

type plist bool

func (p plist) attachFlag() []string { return boolFlag("plist", bool(p)) }
func (p plist) verifyFlag() []string { return boolFlag("plist", bool(p)) }
func (p plist) convertFlag() []string { return boolFlag("plist", bool(p)) }
func (p plist) verifyFlag() []string { return boolFlag("plist", bool(p)) }

type puppetstrings bool

func (p puppetstrings) attachFlag() []string { return boolFlag("puppetstrings", bool(p)) }
func (p puppetstrings) verifyFlag() []string { return boolFlag("puppetstrings", bool(p)) }
func (p puppetstrings) convertFlag() []string { return boolFlag("puppetstrings", bool(p)) }
func (p puppetstrings) makehybridFlag() []string { return boolFlag("puppetstrings", bool(p)) }
func (p puppetstrings) verifyFlag() []string { return boolFlag("puppetstrings", bool(p)) }

// Srcimagekey specify a key/value pair for the disk image recognition system. (-imagekey is normally a synonym)
type Srcimagekey map[string]string
Expand All @@ -77,8 +77,8 @@ func (s Srcimagekey) commonFlag() []string {
return stringFlag("srcimagekey", arg)
}
func (s Srcimagekey) attachFlag() []string { return s.commonFlag() }
func (s Srcimagekey) createFlag() []string { return s.commonFlag() }
func (s Srcimagekey) convertFlag() []string { return s.commonFlag() }
func (s Srcimagekey) createFlag() []string { return s.commonFlag() }
func (s Srcimagekey) makehybridFlag() []string { return s.commonFlag() }

// Tgtimagekey specify a key/value pair for any image created. (-imagekey is only a synonym if there is no input image).
Expand All @@ -92,8 +92,8 @@ func (t Tgtimagekey) commonFlag() []string {
return stringFlag("tgtimagekey", arg)
}
func (t Tgtimagekey) attachFlag() []string { return t.commonFlag() }
func (t Tgtimagekey) createFlag() []string { return t.commonFlag() }
func (t Tgtimagekey) convertFlag() []string { return t.commonFlag() }
func (t Tgtimagekey) createFlag() []string { return t.commonFlag() }

// Imagekey is normally a synonym to Srcimagekey, only a synonym Tgtimagekey if there is no input image.
type Imagekey map[string]string
Expand All @@ -116,9 +116,9 @@ type Encryption EncryptionType
type stdinpass bool

func (s stdinpass) attachFlag() []string { return boolFlag("stdinpass", bool(s)) }
func (s stdinpass) verifyFlag() []string { return boolFlag("stdinpass", bool(s)) }
func (s stdinpass) convertFlag() []string { return boolFlag("stdinpass", bool(s)) }
func (s stdinpass) makehybridFlag() []string { return boolFlag("stdinpass", bool(s)) }
func (s stdinpass) verifyFlag() []string { return boolFlag("stdinpass", bool(s)) }

type agentpass bool

Expand Down Expand Up @@ -162,24 +162,24 @@ func (s Shadow) makehybridFlag() []string { return stringFlag("shadow", string(s
type verbose bool

func (v verbose) attachFlag() []string { return boolFlag("verbose", bool(v)) }
func (v verbose) detachFlag() []string { return boolFlag("verbose", bool(v)) }
func (v verbose) createFlag() []string { return boolFlag("verbose", bool(v)) }
func (v verbose) convertFlag() []string { return boolFlag("verbose", bool(v)) }
func (v verbose) createFlag() []string { return boolFlag("verbose", bool(v)) }
func (v verbose) detachFlag() []string { return boolFlag("verbose", bool(v)) }
func (v verbose) makehybridFlag() []string { return boolFlag("verbose", bool(v)) }

type quiet bool

func (q quiet) attachFlag() []string { return boolFlag("quiet", bool(q)) }
func (q quiet) detachFlag() []string { return boolFlag("quiet", bool(q)) }
func (q quiet) createFlag() []string { return boolFlag("quiet", bool(q)) }
func (q quiet) detachFlag() []string { return boolFlag("quiet", bool(q)) }
func (q quiet) makehybridFlag() []string { return boolFlag("quiet", bool(q)) }

type debug bool

func (d debug) attachFlag() []string { return boolFlag("debug", bool(d)) }
func (d debug) detachFlag() []string { return boolFlag("debug", bool(d)) }
func (d debug) createFlag() []string { return boolFlag("debug", bool(d)) }
func (d debug) convertFlag() []string { return boolFlag("debug", bool(d)) }
func (d debug) createFlag() []string { return boolFlag("debug", bool(d)) }
func (d debug) detachFlag() []string { return boolFlag("debug", bool(d)) }
func (d debug) makehybridFlag() []string { return boolFlag("debug", bool(d)) }

const (
Expand Down

0 comments on commit 7c8633f

Please sign in to comment.