upload

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:          "upload [PATH_TO_SPEC]",
	Short:        "Upload API spec to Akita.",
	SilenceUsage: true,
	Args:         cobra.ExactArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		uploadArgs := upload.Args{
			ClientID:      akid.GenerateClientID(),
			Domain:        akiflag.Domain,
			Service:       serviceFlag,
			SpecPath:      args[0],
			SpecName:      specNameFlag,
			UploadTimeout: uploadTimeoutFlag,
		}

		if err := upload.Run(uploadArgs); err != nil {
			return cmderr.AkitaErr{Err: err}
		}
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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