Skip to content

Commit

Permalink
Merge pull request #117 from mattpolzin/assign-help
Browse files Browse the repository at this point in the history
Deprecated `assign` subcommand help output.
  • Loading branch information
mattpolzin authored Jan 22, 2024
2 parents b306c46 + 23a3f88 commit a56e264
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 24 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
};

harmonyPkg = buildIdris {
version = "4.0.0";
version = "4.0.1";
projectName = "harmony";
src = ./.;

Expand Down
2 changes: 1 addition & 1 deletion harmony.ipkg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package harmony
version = 4.0.0
version = 4.0.1
authors = "Mathew Polzin"
license = "MIT"
brief = "Harmony GitHub collaboration tool"
Expand Down
22 changes: 11 additions & 11 deletions node-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@
sha512 = "oxeWzmBFxWd+XolxKTc4zr+h3mt+yofn4r7OfoIkR/Cj/o70eEGmPsFbueyJE2iBAGpjgTnEOKM3pnuEGVmiqg==";
};
};
"@octokit/core-5.0.2" = {
"@octokit/core-5.1.0" = {
name = "_at_octokit_slash_core";
packageName = "@octokit/core";
version = "5.0.2";
version = "5.1.0";
src = fetchurl {
url = "https://registry.npmjs.org/@octokit/core/-/core-5.0.2.tgz";
sha512 = "cZUy1gUvd4vttMic7C0lwPed8IYXWYp8kHIMatyhY8t8n3Cpw2ILczkV5pGMPqef7v0bLo0pOHrEHarsau2Ydg==";
url = "https://registry.npmjs.org/@octokit/core/-/core-5.1.0.tgz";
sha512 = "BDa2VAMLSh3otEiaMJ/3Y36GU4qf6GI+VivQ/P41NC6GHcdxpKlqV0ikSZ5gdQsmS3ojXeRx5vasgNTinF0Q4g==";
};
};
"@octokit/endpoint-9.0.4" = {
Expand Down Expand Up @@ -279,13 +279,13 @@
sha512 = "VRLSGzik+Unrup6BsouBeHsf4d1hOEgYWTm/7Nmw1sXoN1+tRly/Gy/po3yeahnP4jfnQWWAhQAqcNfH7ngOkA==";
};
};
"@types/node-20.11.3" = {
"@types/node-20.11.5" = {
name = "_at_types_slash_node";
packageName = "@types/node";
version = "20.11.3";
version = "20.11.5";
src = fetchurl {
url = "https://registry.npmjs.org/@types/node/-/node-20.11.3.tgz";
sha512 = "nrlmbvGPNGaj84IJZXMPhQuCMEVTT/hXZMJJG/aIqVL9fKxqk814sGGtJA4GI6hpJSLQjpi6cn0Qx9eOf9SDVg==";
url = "https://registry.npmjs.org/@types/node/-/node-20.11.5.tgz";
sha512 = "g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==";
};
};
"aggregate-error-3.1.0" = {
Expand Down Expand Up @@ -598,7 +598,7 @@
args = {
name = "_at_mattpolzin_slash_harmony";
packageName = "@mattpolzin/harmony";
version = "4.0.0";
version = "4.0.1";
src = ./.;
dependencies = [
sources."@kwsites/file-exists-1.1.1"
Expand All @@ -610,7 +610,7 @@
sources."@octokit/auth-oauth-user-4.0.1"
sources."@octokit/auth-token-4.0.0"
sources."@octokit/auth-unauthenticated-5.0.1"
sources."@octokit/core-5.0.2"
sources."@octokit/core-5.1.0"
sources."@octokit/endpoint-9.0.4"
sources."@octokit/graphql-7.0.2"
sources."@octokit/oauth-app-6.0.0"
Expand All @@ -631,7 +631,7 @@
sources."@types/aws-lambda-8.10.131"
sources."@types/btoa-lite-1.0.2"
sources."@types/jsonwebtoken-9.0.5"
sources."@types/node-20.11.3"
sources."@types/node-20.11.5"
sources."aggregate-error-3.1.0"
sources."before-after-hook-2.2.3"
sources."bottleneck-2.19.5"
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mattpolzin/harmony",
"version": "4.0.0",
"version": "4.0.1",
"engines": {
"node": ">=18.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/AppVersion.idr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module AppVersion

export
appVersion : String
appVersion = "4.0.0"
appVersion = "4.0.1"

export
printVersion : HasIO io => io ()
Expand Down
9 changes: 8 additions & 1 deletion src/Help.idr
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import Text.PrettyPrint.Prettyprinter.Render.Terminal

%default total

warning : String -> Doc AnsiStyle
warning = annotate (color Yellow) . pretty

option : String -> Doc AnsiStyle
option = annotate bold . pretty

Expand Down Expand Up @@ -95,6 +98,8 @@ subcommandHelp' n@"whoami" = subcommand n [] ["Print information about the conf
subcommandHelp' n@"reflect" = subcommand n [] ["Reflect on the current state of ones own PRs and review requests."]
subcommandHelp' n@"list" = subcommand n [argument True "<team-slug>"] ["List the members of the given GitHub Team."]
subcommandHelp' n@"health" = subcommand n [] ["Graph all open PRs grouped by the month they were created."]
subcommandHelp' n@"assign" = subcommand n [] [warning "Deprecated alias for 'request' command."]
-- TODO 5.0.0: ^ remove deprecated command help
subcommandHelp' c = pretty "Unreconized command: \{c}"

||| Print help for a particular subcommand.
Expand All @@ -109,7 +114,9 @@ helpDocs : Doc AnsiStyle
helpDocs = vsep
[ "harmony" <++> subcommand' "<subcommand>"
, heading "Subcommands" $ vsep
[ subcommandHelp' "branch"
[ subcommandHelp' "assign"
-- TODO 5.0.0: ^ remove deprecated command help
, subcommandHelp' "branch"
, subcommandHelp' "config"
, subcommandHelp' "contribute"
, subcommandHelp' "graph"
Expand Down
2 changes: 2 additions & 0 deletions test/expected_help.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
harmony <subcommand>

Subcommands:
assign
Deprecated alias for 'request' command.
branch
Print the GitHub URI for the currently checked out branch.
config {<property>} [<value>]
Expand Down

0 comments on commit a56e264

Please sign in to comment.