// 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"
)
typegctsCloneRepositoryOptionsstruct{
Usernamestring`json:"username,omitempty"`
Passwordstring`json:"password,omitempty"`
Repositorystring`json:"repository,omitempty"`
Hoststring`json:"host,omitempty"`
Clientstring`json:"client,omitempty"`
}
// GctsCloneRepositoryCommand Clones a Git repository
funcGctsCloneRepositoryCommand()*cobra.Command{
constSTEP_NAME="gctsCloneRepository"
metadata:=gctsCloneRepositoryMetadata()
varstepConfiggctsCloneRepositoryOptions
varstartTimetime.Time
varcreateGctsCloneRepositoryCmd=&cobra.Command{
Use:STEP_NAME,
Short:"Clones a Git repository",
Long:`Clones a Git repository from a remote repository to a local repository on an ABAP system. To be able to execute this step, the corresponding local repository has to exist on the local ABAP system.`,
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")