Exemple #1
0
		if len(pFqdns) == 0 && len(pTags) == 0 {
			pAllNode = true
		}

		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.