options

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

Copyright © 2023 The listen.dev team <engineering@garnet.ai>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Copyright © 2023 The listen.dev team <engineering@garnet.ai>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Copyright © 2023 The listen.dev team <engineering@garnet.ai>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Copyright © 2023 The listen.dev team <engineering@garnet.ai>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Copyright © 2023 The listen.dev team <engineering@garnet.ai>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Copyright © 2023 The listen.dev team <engineering@garnet.ai>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-License-Identifier: Apache-2.0

Copyright © 2023 The listen.dev team <engineering@garnet.ai>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiEnable added in v0.16.0

type CiEnable struct {
	flags.DebugFlags `flagset:"Debug"`
	flags.ConfigFlags
	Directory string `desc:"the directory where the jibril binary is" flag:"dir" json:"jibrildir" name:"dir" validate:"omitempty,dir"`
}

func NewCiEnable added in v0.16.0

func NewCiEnable() (*CiEnable, error)

func (*CiEnable) AsJSON added in v0.16.0

func (o *CiEnable) AsJSON() string

func (*CiEnable) Attach added in v0.16.0

func (o *CiEnable) Attach(c *cobra.Command, exclusions []string)

func (*CiEnable) Transform added in v0.16.0

func (o *CiEnable) Transform(ctx context.Context) error

func (*CiEnable) Validate added in v0.16.0

func (o *CiEnable) Validate() []error

type CiReport added in v0.16.0

type CiReport struct {
	flags.DebugFlags `flagset:"Debug"`
	flags.ConfigFlags
}

func NewCiReport added in v0.16.0

func NewCiReport() (*CiReport, error)

func (*CiReport) AsJSON added in v0.16.0

func (o *CiReport) AsJSON() string

func (*CiReport) Attach added in v0.16.0

func (o *CiReport) Attach(c *cobra.Command, exclusions []string)

func (*CiReport) Transform added in v0.16.0

func (o *CiReport) Transform(ctx context.Context) error

func (*CiReport) Validate added in v0.16.0

func (o *CiReport) Validate() []error

type Empty added in v0.16.0

type Empty struct{}

Empty represents an empty options set.

Mostly needed to override the inherited options.

func NewEmpty added in v0.16.0

func NewEmpty() (*Empty, error)

func (*Empty) AsJSON added in v0.16.0

func (o *Empty) AsJSON() string

func (*Empty) Attach added in v0.16.0

func (o *Empty) Attach(c *cobra.Command, exclusions []string)

func (*Empty) Transform added in v0.16.0

func (o *Empty) Transform(ctx context.Context) error

func (*Empty) Validate added in v0.16.0

func (o *Empty) Validate() []error

type In

type In struct {
	flags.JSONFlags
	flags.ConfigFlags
	flags.DebugFlags `flagset:"Debug"`
}

func NewIn

func NewIn() (*In, error)

func (*In) AsJSON added in v0.4.0

func (o *In) AsJSON() string

func (*In) Attach

func (o *In) Attach(c *cobra.Command, exclusions []string)

func (*In) Transform

func (o *In) Transform(ctx context.Context) error

func (*In) Validate

func (o *In) Validate() []error

type Root

type Root struct {
	flags.ConfigFlags
	flags.DebugFlags `flagset:"Debug"`
}

func NewRoot

func NewRoot() (*Root, error)

func (*Root) AsJSON added in v0.4.0

func (o *Root) AsJSON() string

func (*Root) Attach

func (o *Root) Attach(c *cobra.Command, exclusions []string)

func (*Root) Transform

func (o *Root) Transform(ctx context.Context) error

func (*Root) Validate

func (o *Root) Validate() []error

type Scan added in v0.3.0

type Scan struct {
	flags.DebugFlags `flagset:"Debug"`
	flags.JSONFlags
	flags.ConfigFlags
}

func NewScan added in v0.3.0

func NewScan() (*Scan, error)

func (*Scan) AsJSON added in v0.4.0

func (o *Scan) AsJSON() string

func (*Scan) Attach added in v0.3.0

func (o *Scan) Attach(c *cobra.Command, exclusions []string)

func (*Scan) Transform added in v0.3.0

func (o *Scan) Transform(ctx context.Context) error

func (*Scan) Validate added in v0.3.0

func (o *Scan) Validate() []error

type To

type To struct {
	flags.DebugFlags `flagset:"Debug"`
	flags.JSONFlags
	flags.ConfigFlags
}

func NewTo

func NewTo() (*To, error)

func (*To) AsJSON added in v0.4.0

func (o *To) AsJSON() string

func (*To) Attach

func (o *To) Attach(c *cobra.Command, exclusions []string)

func (*To) Transform

func (o *To) Transform(ctx context.Context) error

func (*To) Validate

func (o *To) Validate() []error

type Version

type Version struct {
	Verbosity        int  `desc:"increment the verbosity level" json:"verbosity" name:"verbosity" shorthand:"v"    type:"count" validate:"gte=0"`
	Changelog        bool `desc:"output the relase notes URL"   flag:"changelog" json:"changelog" name:"changelog"`
	flags.DebugFlags `flagset:"Debug"`
}

func NewVersion

func NewVersion() (*Version, error)

func (*Version) AsJSON added in v0.4.0

func (v *Version) AsJSON() string

func (*Version) Attach

func (v *Version) Attach(c *cobra.Command, exclusions []string)

func (*Version) Transform

func (v *Version) Transform(ctx context.Context) error

func (*Version) Validate

func (v *Version) Validate() []error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL