Skip to content

Commit

Permalink
cmds: rename DefaultVal -> Default, Default -> WithDefault
Browse files Browse the repository at this point in the history
Propagate change from cmdkit.

License: MIT
Signed-off-by: Steven Allen <[email protected]>
  • Loading branch information
Stebalien committed Nov 21, 2017
1 parent ac0f280 commit 9b00170
Show file tree
Hide file tree
Showing 29 changed files with 88 additions and 88 deletions.
20 changes: 10 additions & 10 deletions cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,20 @@ Headers.
},

Options: []cmdkit.Option{
cmdkit.BoolOption(initOptionKwd, "Initialize ipfs with default settings if not already initialized").Default(false),
cmdkit.StringOption(routingOptionKwd, "Overrides the routing option").Default("dht"),
cmdkit.BoolOption(mountKwd, "Mounts IPFS to the filesystem").Default(false),
cmdkit.BoolOption(writableKwd, "Enable writing objects (with POST, PUT and DELETE)").Default(false),
cmdkit.BoolOption(initOptionKwd, "Initialize ipfs with default settings if not already initialized").WithDefault(false),
cmdkit.StringOption(routingOptionKwd, "Overrides the routing option").WithDefault("dht"),
cmdkit.BoolOption(mountKwd, "Mounts IPFS to the filesystem").WithDefault(false),
cmdkit.BoolOption(writableKwd, "Enable writing objects (with POST, PUT and DELETE)").WithDefault(false),
cmdkit.StringOption(ipfsMountKwd, "Path to the mountpoint for IPFS (if using --mount). Defaults to config setting."),
cmdkit.StringOption(ipnsMountKwd, "Path to the mountpoint for IPNS (if using --mount). Defaults to config setting."),
cmdkit.BoolOption(unrestrictedApiAccessKwd, "Allow API access to unlisted hashes").Default(false),
cmdkit.BoolOption(unencryptTransportKwd, "Disable transport encryption (for debugging protocols)").Default(false),
cmdkit.BoolOption(enableGCKwd, "Enable automatic periodic repo garbage collection").Default(false),
cmdkit.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed").Default(true),
cmdkit.BoolOption(offlineKwd, "Run offline. Do not connect to the rest of the network but provide local API.").Default(false),
cmdkit.BoolOption(unrestrictedApiAccessKwd, "Allow API access to unlisted hashes").WithDefault(false),
cmdkit.BoolOption(unencryptTransportKwd, "Disable transport encryption (for debugging protocols)").WithDefault(false),
cmdkit.BoolOption(enableGCKwd, "Enable automatic periodic repo garbage collection").WithDefault(false),
cmdkit.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed").WithDefault(true),
cmdkit.BoolOption(offlineKwd, "Run offline. Do not connect to the rest of the network but provide local API.").WithDefault(false),
cmdkit.BoolOption(migrateKwd, "If true, assume yes at the migrate prompt. If false, assume no."),
cmdkit.BoolOption(enableFloodSubKwd, "Instantiate the ipfs daemon with the experimental pubsub feature enabled."),
cmdkit.BoolOption(enableMultiplexKwd, "Add the experimental 'go-multiplex' stream muxer to libp2p on construction.").Default(true),
cmdkit.BoolOption(enableMultiplexKwd, "Add the experimental 'go-multiplex' stream muxer to libp2p on construction.").WithDefault(true),

// TODO: add way to override addresses. tricky part: updating the config if also --init.
// cmdkit.StringOption(apiAddrKwd, "Address for the daemon rpc API (overrides config)"),
Expand Down
4 changes: 2 additions & 2 deletions cmd/ipfs/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ environment variable:
cmdkit.FileArg("default-config", false, false, "Initialize with the given configuration.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.IntOption("bits", "b", "Number of bits to use in the generated RSA private key.").Default(nBitsForKeypairDefault),
cmdkit.BoolOption("empty-repo", "e", "Don't add and pin help files to the local storage.").Default(false),
cmdkit.IntOption("bits", "b", "Number of bits to use in the generated RSA private key.").WithDefault(nBitsForKeypairDefault),
cmdkit.BoolOption("empty-repo", "e", "Don't add and pin help files to the local storage.").WithDefault(false),
cmdkit.StringOption("profile", "p", "Apply profile settings to config. Multiple profiles can be separated by ','"),

// TODO need to decide whether to expose the override as a file or a
Expand Down
2 changes: 1 addition & 1 deletion commands/cli/helptext.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func generateSynopsis(cmd *cmds.Command, path string) string {
if len(n) > 1 {
pre = "--"
}
if opt.Type() == cmdkit.Bool && opt.DefaultVal() == true {
if opt.Type() == cmdkit.Bool && opt.Default() == true {
pre = "--"
sopt = fmt.Sprintf("%s%s=false", pre, n)
break
Expand Down
2 changes: 1 addition & 1 deletion commands/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (r *request) Option(name string) *cmdkit.OptionValue {
}
}

return &cmdkit.OptionValue{option.DefaultVal(), false, option}
return &cmdkit.OptionValue{option.Default(), false, option}
}

// Options returns a copy of the option map
Expand Down
2 changes: 1 addition & 1 deletion core/commands/active.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Lists running and recently run commands.
res.SetOutput(req.InvocContext().ReqLog.Report())
},
Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", "v", "Print extra information.").Default(false),
cmdkit.BoolOption("verbose", "v", "Print extra information.").WithDefault(false),
},
Subcommands: map[string]*cmds.Command{
"clear": clearInactiveCmd,
Expand Down
8 changes: 4 additions & 4 deletions core/commands/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ You can now check what blocks have been created by:
cmdkit.BoolOption(onlyHashOptionName, "n", "Only chunk and hash - do not write to disk."),
cmdkit.BoolOption(wrapOptionName, "w", "Wrap files with a directory object."),
cmdkit.BoolOption(hiddenOptionName, "H", "Include files that are hidden. Only takes effect on recursive add."),
cmdkit.StringOption(chunkerOptionName, "s", "Chunking algorithm, size-[bytes] or rabin-[min]-[avg]-[max]").Default("size-262144"),
cmdkit.BoolOption(pinOptionName, "Pin this object when adding.").Default(true),
cmdkit.StringOption(chunkerOptionName, "s", "Chunking algorithm, size-[bytes] or rabin-[min]-[avg]-[max]").WithDefault("size-262144"),
cmdkit.BoolOption(pinOptionName, "Pin this object when adding.").WithDefault(true),
cmdkit.BoolOption(rawLeavesOptionName, "Use raw blocks for leaf nodes. (experimental)"),
cmdkit.BoolOption(noCopyOptionName, "Add the file using filestore. (experimental)"),
cmdkit.BoolOption(fstoreCacheOptionName, "Check the filestore for pre-existing blocks. (experimental)"),
cmdkit.IntOption(cidVersionOptionName, "Cid version. Non-zero value will change default of 'raw-leaves' to true. (experimental)").Default(0),
cmdkit.StringOption(hashOptionName, "Hash function to use. Will set Cid version to 1 if used. (experimental)").Default("sha2-256"),
cmdkit.IntOption(cidVersionOptionName, "Cid version. Non-zero value will change default of 'raw-leaves' to true. (experimental)").WithDefault(0),
cmdkit.StringOption(hashOptionName, "Hash function to use. Will set Cid version to 1 if used. (experimental)").WithDefault("sha2-256"),
},
PreRun: func(req cmds.Request) error {
quiet, _, _ := req.Option(quietOptionName).Bool()
Expand Down
10 changes: 5 additions & 5 deletions core/commands/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ It reads from stdin, and <key> is a base58 encoded multihash.
cmdkit.FileArg("data", true, false, "The data to be stored as an IPFS block.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.StringOption("format", "f", "cid format for blocks to be created with.").Default("v0"),
cmdkit.StringOption("mhtype", "multihash hash function").Default("sha2-256"),
cmdkit.IntOption("mhlen", "multihash hash length").Default(-1),
cmdkit.StringOption("format", "f", "cid format for blocks to be created with.").WithDefault("v0"),
cmdkit.StringOption("mhtype", "multihash hash function").WithDefault("sha2-256"),
cmdkit.IntOption("mhlen", "multihash hash length").WithDefault(-1),
},
Run: func(req cmds.Request, res cmds.ResponseEmitter) {
n, err := req.InvocContext().GetNode()
Expand Down Expand Up @@ -260,8 +260,8 @@ It takes a list of base58 encoded multihashs to remove.
cmdkit.StringArg("hash", true, true, "Bash58 encoded multihash of block(s) to remove."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("force", "f", "Ignore nonexistent blocks.").Default(false),
cmdkit.BoolOption("quiet", "q", "Write minimal output.").Default(false),
cmdkit.BoolOption("force", "f", "Ignore nonexistent blocks.").WithDefault(false),
cmdkit.BoolOption("quiet", "q", "Write minimal output.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.ResponseEmitter) {
n, err := req.InvocContext().GetNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func CommandsCmd(root *cmds.Command) *cmds.Command {
ShortDescription: `Lists all available commands (and subcommands) and exits.`,
},
Options: []cmdkit.Option{
cmdkit.BoolOption(flagsOptionName, "f", "Show command flags").Default(false),
cmdkit.BoolOption(flagsOptionName, "f", "Show command flags").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.ResponseEmitter) {
rootCmd := cmd2outputCmd("ipfs", root)
Expand Down
4 changes: 2 additions & 2 deletions core/commands/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Set the value of the 'Datastore.Path' key:
cmdkit.StringArg("value", false, false, "The value to set the config entry to."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("bool", "Set a boolean value.").Default(false),
cmdkit.BoolOption("json", "Parse stringified JSON.").Default(false),
cmdkit.BoolOption("bool", "Set a boolean value.").WithDefault(false),
cmdkit.BoolOption("json", "Parse stringified JSON.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
args := req.Arguments()
Expand Down
8 changes: 4 additions & 4 deletions core/commands/dag/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ into an object of the specified format.
cmdkit.FileArg("object data", true, true, "The object to put").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.StringOption("format", "f", "Format that the object will be added as.").Default("cbor"),
cmdkit.StringOption("input-enc", "Format that the input object will be.").Default("json"),
cmdkit.BoolOption("pin", "Pin this object when adding.").Default(false),
cmdkit.StringOption("hash", "Hash function to use").Default(""),
cmdkit.StringOption("format", "f", "Format that the object will be added as.").WithDefault("cbor"),
cmdkit.StringOption("input-enc", "Format that the input object will be.").WithDefault("json"),
cmdkit.BoolOption("pin", "Pin this object when adding.").WithDefault(false),
cmdkit.StringOption("hash", "Hash function to use").WithDefault(""),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down
16 changes: 8 additions & 8 deletions core/commands/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var queryDhtCmd = &cmds.Command{
cmdkit.StringArg("peerID", true, true, "The peerID to run the query against."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", "v", "Print extra information.").Default(false),
cmdkit.BoolOption("verbose", "v", "Print extra information.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down Expand Up @@ -139,8 +139,8 @@ var findProvidersDhtCmd = &cmds.Command{
cmdkit.StringArg("key", true, true, "The key to find providers for."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", "v", "Print extra information.").Default(false),
cmdkit.IntOption("num-providers", "n", "The number of providers to find.").Default(20),
cmdkit.BoolOption("verbose", "v", "Print extra information.").WithDefault(false),
cmdkit.IntOption("num-providers", "n", "The number of providers to find.").WithDefault(20),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down Expand Up @@ -248,8 +248,8 @@ var provideRefDhtCmd = &cmds.Command{
cmdkit.StringArg("key", true, true, "The key[s] to send provide records for.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", "v", "Print extra information.").Default(false),
cmdkit.BoolOption("recursive", "r", "Recursively provide entire graph.").Default(false),
cmdkit.BoolOption("verbose", "v", "Print extra information.").WithDefault(false),
cmdkit.BoolOption("recursive", "r", "Recursively provide entire graph.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down Expand Up @@ -397,7 +397,7 @@ var findPeerDhtCmd = &cmds.Command{
cmdkit.StringArg("peerID", true, true, "The ID of the peer to search for."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", "v", "Print extra information.").Default(false),
cmdkit.BoolOption("verbose", "v", "Print extra information.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down Expand Up @@ -499,7 +499,7 @@ Different key types can specify other 'best' rules.
cmdkit.StringArg("key", true, true, "The key to find a value for."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", "v", "Print extra information.").Default(false),
cmdkit.BoolOption("verbose", "v", "Print extra information.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down Expand Up @@ -611,7 +611,7 @@ NOTE: A value may not exceed 2048 bytes.
cmdkit.StringArg("value", true, false, "The value to store.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", "v", "Print extra information.").Default(false),
cmdkit.BoolOption("verbose", "v", "Print extra information.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The resolver can recursively resolve:
cmdkit.StringArg("domain-name", true, false, "The domain-name name to resolve.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("recursive", "r", "Resolve until the result is not a DNS link.").Default(false),
cmdkit.BoolOption("recursive", "r", "Resolve until the result is not a DNS link.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {

Expand Down
8 changes: 4 additions & 4 deletions core/commands/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ operations.
`,
},
Options: []cmdkit.Option{
cmdkit.BoolOption("f", "flush", "Flush target and ancestors after write.").Default(true),
cmdkit.BoolOption("f", "flush", "Flush target and ancestors after write.").WithDefault(true),
},
Subcommands: map[string]*cmds.Command{
"read": FilesReadCmd,
Expand Down Expand Up @@ -77,14 +77,14 @@ var FilesStatCmd = &cmds.Command{
},
Options: []cmdkit.Option{
cmdkit.StringOption("format", "Print statistics in given format. Allowed tokens: "+
"<hash> <size> <cumulsize> <type> <childs>. Conflicts with other format options.").Default(
"<hash> <size> <cumulsize> <type> <childs>. Conflicts with other format options.").WithDefault(
`<hash>
Size: <size>
CumulativeSize: <cumulsize>
ChildBlocks: <childs>
Type: <type>`),
cmdkit.BoolOption("hash", "Print only hash. Implies '--format=<hash>'. Conflicts with other format options.").Default(false),
cmdkit.BoolOption("size", "Print only size. Implies '--format=<cumulsize>'. Conflicts with other format options.").Default(false),
cmdkit.BoolOption("hash", "Print only hash. Implies '--format=<hash>'. Conflicts with other format options.").WithDefault(false),
cmdkit.BoolOption("size", "Print only size. Implies '--format=<cumulsize>'. Conflicts with other format options.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {

Expand Down
6 changes: 3 additions & 3 deletions core/commands/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ may also specify the level of compression by specifying '-l=<1-9>'.
},
Options: []cmdkit.Option{
cmdkit.StringOption("output", "o", "The path where the output should be stored."),
cmdkit.BoolOption("archive", "a", "Output a TAR archive.").Default(false),
cmdkit.BoolOption("compress", "C", "Compress the output with GZIP compression.").Default(false),
cmdkit.IntOption("compression-level", "l", "The level of compression (1-9).").Default(-1),
cmdkit.BoolOption("archive", "a", "Output a TAR archive.").WithDefault(false),
cmdkit.BoolOption("compress", "C", "Compress the output with GZIP compression.").WithDefault(false),
cmdkit.IntOption("compression-level", "l", "The level of compression (1-9).").WithDefault(-1),
},
PreRun: func(req cmds.Request) error {
_, err := getCompressOptions(req)
Expand Down
4 changes: 2 additions & 2 deletions core/commands/ipns.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ Resolve the value of a dnslink:
cmdkit.StringArg("name", false, false, "The IPNS name to resolve. Defaults to your node's peerID."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("recursive", "r", "Resolve until the result is not an IPNS name.").Default(false),
cmdkit.BoolOption("nocache", "n", "Do not use cached entries.").Default(false),
cmdkit.BoolOption("recursive", "r", "Resolve until the result is not an IPNS name.").WithDefault(false),
cmdkit.BoolOption("nocache", "n", "Do not use cached entries.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {

Expand Down
4 changes: 2 additions & 2 deletions core/commands/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ The JSON output contains type information.
cmdkit.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to list links from.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("headers", "v", "Print table headers (Hash, Size, Name).").Default(false),
cmdkit.BoolOption("resolve-type", "Resolve linked objects to find out their types.").Default(true),
cmdkit.BoolOption("headers", "v", "Print table headers (Hash, Size, Name).").WithDefault(false),
cmdkit.BoolOption("resolve-type", "Resolve linked objects to find out their types.").WithDefault(true),
},
Run: func(req cmds.Request, res cmds.Response) {
nd, err := req.InvocContext().GetNode()
Expand Down
8 changes: 4 additions & 4 deletions core/commands/object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ multihash.
cmdkit.StringArg("key", true, false, "Key of the object to retrieve, in base58-encoded multihash format.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("headers", "v", "Print table headers (Hash, Size, Name).").Default(false),
cmdkit.BoolOption("headers", "v", "Print table headers (Hash, Size, Name).").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down Expand Up @@ -382,9 +382,9 @@ And then run:
cmdkit.FileArg("data", true, false, "Data to be stored as a DAG object.").EnableStdin(),
},
Options: []cmdkit.Option{
cmdkit.StringOption("inputenc", "Encoding type of input data. One of: {\"protobuf\", \"json\"}.").Default("json"),
cmdkit.StringOption("datafieldenc", "Encoding type of the data field, either \"text\" or \"base64\".").Default("text"),
cmdkit.BoolOption("pin", "Pin this object when adding.").Default(false),
cmdkit.StringOption("inputenc", "Encoding type of input data. One of: {\"protobuf\", \"json\"}.").WithDefault("json"),
cmdkit.StringOption("datafieldenc", "Encoding type of the data field, either \"text\" or \"base64\".").WithDefault("text"),
cmdkit.BoolOption("pin", "Pin this object when adding.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode()
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ to a file containing 'bar', and returns the hash of the new object.
cmdkit.StringArg("ref", true, false, "IPFS object to add link to."),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("create", "p", "Create intermediary nodes.").Default(false),
cmdkit.BoolOption("create", "p", "Create intermediary nodes.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
nd, err := req.InvocContext().GetNode()
Expand Down
8 changes: 4 additions & 4 deletions core/commands/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var p2pListenerLsCmd = &cmds.Command{
Tagline: "List active p2p listeners.",
},
Options: []cmdkit.Option{
cmdkit.BoolOption("headers", "v", "Print table headers (HandlerID, Protocol, Local, Remote).").Default(false),
cmdkit.BoolOption("headers", "v", "Print table headers (HandlerID, Protocol, Local, Remote).").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {

Expand Down Expand Up @@ -143,7 +143,7 @@ var p2pStreamLsCmd = &cmds.Command{
Tagline: "List active p2p streams.",
},
Options: []cmdkit.Option{
cmdkit.BoolOption("headers", "v", "Print table headers (HagndlerID, Protocol, Local, Remote).").Default(false),
cmdkit.BoolOption("headers", "v", "Print table headers (HagndlerID, Protocol, Local, Remote).").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
n, err := getNode(req)
Expand Down Expand Up @@ -307,7 +307,7 @@ var p2pListenerCloseCmd = &cmds.Command{
cmdkit.StringArg("Protocol", false, false, "P2P listener protocol"),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("all", "a", "Close all listeners.").Default(false),
cmdkit.BoolOption("all", "a", "Close all listeners.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
res.SetOutput(nil)
Expand Down Expand Up @@ -350,7 +350,7 @@ var p2pStreamCloseCmd = &cmds.Command{
cmdkit.StringArg("HandlerID", false, false, "Stream HandlerID"),
},
Options: []cmdkit.Option{
cmdkit.BoolOption("all", "a", "Close all streams.").Default(false),
cmdkit.BoolOption("all", "a", "Close all streams.").WithDefault(false),
},
Run: func(req cmds.Request, res cmds.Response) {
res.SetOutput(nil)
Expand Down
Loading

0 comments on commit 9b00170

Please sign in to comment.