github.com/suchongming/fabric@v2.1.1+incompatible/integration/nwo/commands/cryptogen.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package commands 8 9 type Generate struct { 10 Config string 11 Output string 12 } 13 14 func (c Generate) SessionName() string { 15 return "cryptogen-generate" 16 } 17 18 func (c Generate) Args() []string { 19 return []string{ 20 "generate", 21 "--config", c.Config, 22 "--output", c.Output, 23 } 24 } 25 26 type Extend struct { 27 Config string 28 Input string 29 } 30 31 func (c Extend) SessionName() string { 32 return "cryptogen-extend" 33 } 34 35 func (c Extend) Args() []string { 36 return []string{ 37 "extend", 38 "--config", c.Config, 39 "--input", c.Input, 40 } 41 }