-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdout and stderr working with spinner, extra tests and better lib st…
…ructure
- Loading branch information
1 parent
445fb47
commit 361eec6
Showing
13 changed files
with
333 additions
and
117 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | ||
#!/bin/bash | ||
|
||
# Read a single line of input from stdin | ||
read -r line | ||
|
||
# Print the input line to stdout | ||
echo "You entered: $line" |
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,15 @@ | ||
#!/bin/bash | ||
spin[0]="-" | ||
spin[1]="\\" | ||
spin[2]="|" | ||
spin[3]="/" | ||
|
||
j=0 | ||
while [ $j -lt 3 ]; do | ||
for i in "${spin[@]}" | ||
do | ||
echo -ne "\b$i" | ||
sleep 0.1 | ||
done | ||
j=$((j+1)) | ||
done |
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,11 @@ | ||
#!/bin/bash | ||
echoerr() { echo "$@" 1>&2; } | ||
echo hello1 | ||
echo hello2 | ||
sleep 2 | ||
echo hello3 | ||
sleep 1 | ||
echoerr hello world2 | ||
echoerr hello world3 | ||
sleep 1 | ||
echoerr hello world1 |
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,14 @@ | ||
mod next; | ||
mod archives; | ||
mod config; | ||
mod errors; | ||
mod filesystem; | ||
mod git; | ||
mod process; | ||
mod secret; | ||
mod secret_store; | ||
mod state; | ||
|
||
pub mod commands; | ||
|
||
pub use next::api::*; |
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
Oops, something went wrong.