Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(contextual help): correct docs link, add missing examples #803

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading