From 800381c33eb2b1f41fc7ff42ea160ccc4dacaf97 Mon Sep 17 00:00:00 2001 From: "Tj (bougyman) Vanderpoel" Date: Wed, 7 Feb 2024 00:29:10 -0600 Subject: [PATCH] Adds the proper lc command for aliases --- exe/scripts/lc.sh | 3 +-- exe/scripts/lclose.sh | 4 ++-- exe/scripts/lcreate.sh | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/exe/scripts/lc.sh b/exe/scripts/lc.sh index d23b275..7f8a209 100755 --- a/exe/scripts/lc.sh +++ b/exe/scripts/lc.sh @@ -24,8 +24,7 @@ result=$? if [ $result -eq 1 ]; then printf "\nlc: You may pass --help for further information on any subcommand\n" >&2 exit 1 -fi -if [ $result -gt 1 ]; then +elif [ $result -gt 1 ]; then if [ $result -eq 130 ]; then printf "\n\nlc: linear-cli interrupted\n" >&2 exit 130 diff --git a/exe/scripts/lclose.sh b/exe/scripts/lclose.sh index 6821d36..0e196ff 100755 --- a/exe/scripts/lclose.sh +++ b/exe/scripts/lclose.sh @@ -4,6 +4,6 @@ then printf "This wrapper adds the --close option to the 'issue update' command.\n" >&2 printf "It is used to close one or many issues. The issues are specified by their ID/slugs.\n" >&2 printf "For closing multiple issues, you really want to pass --reason so you do not get prompted for each issue.\n\n" >&2 - exec linear-cli issue update --help + exec lc issue update --close --help fi -exec linear-cli issue update --close "$@" +exec lc issue update --close "$@" diff --git a/exe/scripts/lcreate.sh b/exe/scripts/lcreate.sh index 1acee2f..d4e72d0 100755 --- a/exe/scripts/lcreate.sh +++ b/exe/scripts/lcreate.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -exec linear-cli issue create "$@" +exec lc issue create "$@"