-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from jamesob/pr-23
Desk works with fish
- Loading branch information
Showing
7 changed files
with
77 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,3 @@ fish: dockerbuild | |
.PHONY: lint | ||
lint: | ||
shellcheck -e SC2155 desk | ||
|
||
.PHONY: test | ||
test: | ||
desk --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Description: a simple test for the fish shell. | ||
|
||
# Args: <hello_to>. Say hello to someone. | ||
function say_hello | ||
echo Hello $argv | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/fish | ||
printf "\ | ||
" | desk init | ||
|
||
cp examples/* ~/.desk/desks/ | ||
|
||
set LIST (desk ls) | ||
echo $LIST | grep "hello" >/dev/null | ||
test $status -ne 0; and echo "hello desk not found"; and exit 1 | ||
|
||
set CURRENT (env DESK_ENV=$HOME/.desk/desks/hello.fish desk) | ||
echo $CURRENT | grep "say_hello - Args: <hello_to>. Say hello to someone." >/dev/null | ||
test $status -ne 0; and echo "say_hello command not found"; and exit 1 | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# Run automated tests to ensure desk is behaving as expected | ||
|
||
ensure() { | ||
|