Skip to content

Latest commit

 

History

History
267 lines (163 loc) · 4.24 KB

File metadata and controls

267 lines (163 loc) · 4.24 KB

Rundown's Rundown File

Check Current Ref

Checks the current ref. This should appear twice.

Never run

I should not appear.

Invoke

Invokes another function.

You won't see me in the output

Done.

Release

Creates a git tag for the provided version, and runs go-releaser.

Go releaser works from git tags. So make sure there's a tag.

git tag -a $VERSION -m "First release"
git push origin $VERSION

Then, run goreleaser to cross-compile and publish the release to GitHub

source .env && goreleaser release --skip-validate --rm-dist

Test env spinner

NAME="Hi there"
echo "Hi"

Test no spin

echo "Hi"

Test spinner change

# Doing the hi
sleep 1
echo "Hi"


# Doing something else
sleep 1
echo "Bye"

# And again
sleep 1
echo "Cya!"

Test curl response

Makes a call to http://example.org via curl and renders the result as it is received.

curl http://example.org

🚀 Test completed successfully.

Do seomthing else

Blah

Test curl response

ls -la --color=always

Test Stop Ok

Renders.

Stopped.

Doesn't render.

Test Stop Ok If is True

Renders.

Stopped.

Doesn't render.

Test Stop Ok If is False

Renders.

Doesn't Render.

End naturally.

Test Stop Fail

Renders.

Stopped.

Doesn't render.

Test Stop Fail If is True

Renders.

Stopped.

Doesn't render.

Test Stop Fail If is False

Renders.

Doesn't Render.

End naturally.

Some heading

Greets you by your name

# sleep 2
echo "$OPT_GREET $OPT_NAME"
# sleep 2

Say Goodbye

# Bye
sleep 1
echo "Bye $OPT_NAME"
# Cya
sleep 1
echo "Cya $OPT_MISC"
# Done
sleep 1

Say Goodbye

Stuff.

#> Bye
sleep 1
echo "Bye"
#> Cya
echo "Cya"
#> Again
ls
#> Done
sleep 1

Environment

export RESULT=one

The result is: $RESULT.

Borg

echo "Hello from borg process"

Spinners

export NAME=Thingo
export COMPLEX_NAME45=More Thingos
echo "NAME is: $NAME"
#> Simple test...
echo $COMPLEX_NAME45

#> Complex test $NAME...
echo $NAME

Failure

idontexit