- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
26 lines
1.3 KiB
Go
26 lines
1.3 KiB
Go
package ops
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "mongosh",
|
|
Description: "Default Connection String; Equivalent to running mongosh without any commands",
|
|
Options: []spec.Option{
|
|
{Name: "-v", Description: "View your current mongosh version"},
|
|
{Name: "--shell", Description: "Returns information on the options and use of the MongoDB Shell"},
|
|
{Name: "--authenticationDatabase", Description: "This option is available only in MongoDB Enterprise"},
|
|
{Name: "--gssapiServiceName", Description: "Enables retryable writes as the default for sessions in the MongoDB Shell"},
|
|
{Name: "--authenticationMechanism", Description: "MongoDB TLS SSL certificate authentication"},
|
|
{Name: "--nodb", Description: "Prevents the shell from connecting to any database instances"},
|
|
{Name: "--norc", Description: "Prevents the shell from sourcing and evaluating ~/.mongoshrc.js on startup"},
|
|
{Name: "--quiet", Description: "Default-port"},
|
|
{Name: "--tls", Description: "Enables connection to a mongod or mongos that has TLS SSL support enabled"},
|
|
{Name: "--tlsAllowInvalidHostnames", Description: "Disables the specified TLS protocols"},
|
|
{Name: "--tlsCAFile", Description: "Enables connection to a mongod or mongos that has TLS SSL support enabled"},
|
|
},
|
|
})
|
|
}
|