// Code generated by piper's step-generator. DO NOT EDIT.
packagecmd
import(
"fmt"
"os"
"time"
"github.com/SAP/jenkins-library/pkg/config"
"github.com/SAP/jenkins-library/pkg/log"
"github.com/SAP/jenkins-library/pkg/telemetry"
"github.com/spf13/cobra"
)
typegctsDeployOptionsstruct{
Usernamestring`json:"username,omitempty"`
Passwordstring`json:"password,omitempty"`
Repositorystring`json:"repository,omitempty"`
Hoststring`json:"host,omitempty"`
Clientstring`json:"client,omitempty"`
Commitstring`json:"commit,omitempty"`
}
// GctsDeployCommand Pulls a commit from the remote Git repository to a local repository
funcGctsDeployCommand()*cobra.Command{
constSTEP_NAME="gctsDeploy"
metadata:=gctsDeployMetadata()
varstepConfiggctsDeployOptions
varstartTimetime.Time
varcreateGctsDeployCmd=&cobra.Command{
Use:STEP_NAME,
Short:"Pulls a commit from the remote Git repository to a local repository",
Long:`Pulls a commit from the corresponding remote Git repository to a specified local repository on an ABAP system. If no <commit> parameter is specified, this step will pull the latest commit available on the remote repository.`,
cmd.Flags().StringVar(&stepConfig.Username,"username",os.Getenv("PIPER_username"),"User to authenticate to the ABAP system")
cmd.Flags().StringVar(&stepConfig.Password,"password",os.Getenv("PIPER_password"),"Password to authenticate to the ABAP system")
cmd.Flags().StringVar(&stepConfig.Repository,"repository",os.Getenv("PIPER_repository"),"Specifies the name (ID) of the local repsitory on the ABAP system")
cmd.Flags().StringVar(&stepConfig.Host,"host",os.Getenv("PIPER_host"),"Specifies the protocol and host address, including the port. Please provide in the format `<protocol>://<host>:<port>`. Supported protocols are `http` and `https`.")
cmd.Flags().StringVar(&stepConfig.Client,"client",os.Getenv("PIPER_client"),"Specifies the client of the ABAP system to be addressed")