init

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const InitCommandTimeout = 60

InitCommandTimeout timeout

Variables

This section is empty.

Functions

func OpenGitRepo

func OpenGitRepo(repoPath string) *git.Repository

OpenGitRepo checks if a directory is a git repo

func RunInitCommand

func RunInitCommand(terrascanBinaryPath string, outWriter, errWriter io.Writer, exitCode int) *gexec.Session

RunInitCommand will execute the init command and verify exit code

func ValidateGitRepo

func ValidateGitRepo(repo *git.Repository, gitURL string)

ValidateGitRepo validates a git repo and verifies the git url

Types

This section is empty.

Jump to

Keyboard shortcuts

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