Exemple #1
0
		}

		currentStage := stageTree.GetStageByName(args[0])

		var stage *models.Stage

		if pAllNode {
			stage = currentStage
		} else {
			stage = currentStage.Filter(pFqdns, pTags)
		}

		if pAllRepositories {
			stage.CheckAll()
		} else {
			stage.Check(pRepositories)
		}

		if stage.HasError() {
			RenderErrorSummary(stage)
		}
	},
}

func init() {
	pulpCmd.AddCommand(checkCmd)

	// Here you will define your flags and configuration settings.

	// Cobra supports Persistent Flags which will work for this command
	// and all subcommands, e.g.: