sub

package
v0.0.0-...-e284d0c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetReposCmd = &cobra.Command{
	Use:   "get-repos",
	Short: "Fetch and filter GitHub repositories from an organization",
	Long: `Fetch and filter GitHub repositories from an organization.
	
Example:
  sinaloa github get-repos \
    --organization "OrgName" \
    --query "-my-repo-,repo-" \
    --save-json true \
    --save-path-json "/tmp/repos.json"`,
	Run: func(cmd *cobra.Command, args []string) {

		result, err := controller.GetRepos(
			getReposOrganization,
			getReposQuery,
			getReposSaveJSON,
			getReposSavePathJSON,
		)

		if err != nil {
			fmt.Printf("Error: %v\n", err)
			return
		}

		fmt.Println(string(result))
	},
}
View Source
var ReposDeployEnvironmentsCmd = &cobra.Command{
	Use:   "repos-deploy-environments",
	Short: "Analyze deployment environments across multiple repositories and projects",
	Long: `Analyze deployment environments across multiple repositories and projects.
Scans repositories, parses manifest files, and generates a comprehensive deployment matrix.

Example:
  sinaloa github repos-deploy-environments \
    --organization "OrgName" \
    --query "my-repo-,repo-" \
    --envs "prod-,qa-,test-" \
    --folders "apps,src" \
    --save-json true \
    --save-path-json "/tmp/deployment-matrix.json"`,
	Run: func(cmd *cobra.Command, args []string) {

		result, err := controller.ReposDeployEnvironments(
			deployEnvsOrganization,
			deployEnvsQuery,
			deployEnvsEnvs,
			deployEnvsManifestSection,
			deployEnvsManifestName,
			deployEnvsFolders,
			deployEnvsSaveJSON,
			deployEnvsSavePathJSON,
		)

		if err != nil {
			fmt.Printf("Error: %v\n", err)
			return
		}

		fmt.Println(string(result))
	},
}

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