Skip to content

Commit

Permalink
Adds the proper lc command for aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
bougyman committed Feb 7, 2024
1 parent 3f3f7a6 commit 800381c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions exe/scripts/lc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions exe/scripts/lclose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
2 changes: 1 addition & 1 deletion exe/scripts/lcreate.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
exec linear-cli issue create "$@"
exec lc issue create "$@"

0 comments on commit 800381c

Please sign in to comment.