Skip to content

Commit

Permalink
Merge pull request #4 from skilld-labs/renaminglabels
Browse files Browse the repository at this point in the history
Renaming labels for better clarity
  • Loading branch information
davidferlay authored Oct 15, 2024
2 parents 027bb18 + 7ea67df commit 4dd6eec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (p *Plugin) OnAppInit(_ launchr.App) error {
func (p *Plugin) CobraAddCommands(rootCmd *cobra.Command) error {
var depCmd = &cobra.Command{
Use: "dependencies",
Short: "Shows parent and child resources of resource",
Short: "Shows dependencies and dependent resources of selected resource",
Aliases: []string{"deps"},
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down Expand Up @@ -119,7 +119,7 @@ func dependencies(target string, toPath, showTree bool, depth int8) error {
requiredMap := inv.GetRequiredMap()
parents := lookupDependencies(searchMrn, requiredMap, depth)
if len(parents) > 0 {
cli.Println("- Parent dependencies:")
cli.Println("- Dependent resources:")
if showTree {
var parentsTree forwardTree = requiredMap
parentsTree.print(header, "", 1, depth, searchMrn, toPath)
Expand All @@ -131,7 +131,7 @@ func dependencies(target string, toPath, showTree bool, depth int8) error {
dependenciesMap := inv.GetDependenciesMap()
children := lookupDependencies(searchMrn, dependenciesMap, depth)
if len(children) > 0 {
cli.Println("- Child dependencies:")
cli.Println("- Dependencies:")
if showTree {
var childrenTree forwardTree = dependenciesMap
childrenTree.print(header, "", 1, depth, searchMrn, toPath)
Expand Down

0 comments on commit 4dd6eec

Please sign in to comment.