Skip to content

Commit

Permalink
fix(contextual help): correct docs link, add missing examples (#803)
Browse files Browse the repository at this point in the history
Co-authored-by: dave vader <48764154+plyr4@users.noreply.github.com>
  • Loading branch information
KellyMerrick and plyr4 authored Jun 3, 2024
1 parent a8a4694 commit eb08b1a
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 3 deletions.
10 changes: 10 additions & 0 deletions src/elm/Pages/Org_/Repo_/Build_.elm
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ toLayout user route model =
++ route.params.build
, docs = Just "build/view"
}
, { name = "Approve Build"
, content =
"vela approve build --org "
++ route.params.org
++ " --repo "
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "build/approve"
}
, { name = "Restart Build"
, content =
"vela restart build --org "
Expand Down
12 changes: 11 additions & 1 deletion src/elm/Pages/Org_/Repo_/Build_/Graph.elm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,17 @@ toLayout user route model =
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "cli/pipeline/validate"
, docs = Just "build/view"
}
, { name = "Approve Build"
, content =
"vela approve build --org "
++ route.params.org
++ " --repo "
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "build/approve"
}
, { name = "Restart Build"
, content =
Expand Down
12 changes: 11 additions & 1 deletion src/elm/Pages/Org_/Repo_/Build_/Pipeline.elm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,17 @@ toLayout user route model =
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "cli/pipeline/validate"
, docs = Just "build/view"
}
, { name = "Approve Build"
, content =
"vela approve build --org "
++ route.params.org
++ " --repo "
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "build/approve"
}
, { name = "Restart Build"
, content =
Expand Down
37 changes: 36 additions & 1 deletion src/elm/Pages/Org_/Repo_/Build_/Services.elm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,17 @@ toLayout user route model =
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "cli/pipeline/validate"
, docs = Just "build/view"
}
, { name = "Approve Build"
, content =
"vela approve build --org "
++ route.params.org
++ " --repo "
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "build/approve"
}
, { name = "Restart Build"
, content =
Expand Down Expand Up @@ -114,6 +124,31 @@ toLayout user route model =
++ " --service 1"
, docs = Just "service/view"
}
, { name = "List Logs"
, content =
"vela get logs --org "
++ route.params.org
++ " --repo "
++ route.params.repo
++ " --build "
++ route.params.build
, docs = Just "log/get"
}
, { name = "View Log Help"
, content = "vela view log -h"
, docs = Just "log/view"
}
, { name = "View Service Log Example"
, content =
"vela view log --org "
++ route.params.org
++ " --repo "
++ route.params.repo
++ " --build "
++ route.params.build
++ " --service 1"
, docs = Just "log/view"
}
]
, crumbs =
[ ( "Overview", Just Route.Path.Home_ )
Expand Down

0 comments on commit eb08b1a

Please sign in to comment.