Skip to content

b-nova-techhub/runme-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

name runme
ricky
id version
01HW5HZ40BG01R0MME4CJG9VDP
v3

Setup Runme On MacOS

Die Installation über Homebrew ist die einfachste Möglichkeit auf einem Mac.

brew install runme

PING Example

Zum testen der Internetverbindung pingen wir nun Google an!

ping -c 5 8.8.8.8

interactive - Setting

Beispiel für ein Interaktive code Zelle

#!/bin/bash
echo "Do you want to see the file list of the current directory? (y/n)"
read answer

if [ "$answer" = "y" ]; then
  ls
else
  echo "Action canceled."
fi

promptEnv - Setting

export USER_NAME=""
echo $USER_NAME
export COMPANY=""
echo $COMPANY

mime - Setting

cat ./resources/table_example.csv
cat table_example.csv
curl https://api.dicebear.com/6.x/pixel-art/svg

Rows

for ((index=1; index<=10; index++)); do
    echo "Row $index"
    sleep 0.25
done

Run by category

echo "Hello From "
echo "category 01"
echo "Hello from category 02"

Shebang - Setting

print("hello from Python")
console.log("hello from JavaScript")
import java.util.Locale;

class Hello {
    public static void main(String[] args) {
        String lang = Locale.getDefault().getLanguage();
        System.out.println(Greetings.getGreeting(lang) + " from the runme-Techup");
    }
}

class Greetings {
    static String getGreeting(String lang) {
        switch (lang) {
            case "fr": return "Bonjour";
            case "es": return "Hola";
            case "zh": return "Nǐn hǎo";
            case "de": return "Guten Tag";
            case "pl": return "Dzień dobry";
            case "el": return "Yassas";
            case "sv": return "God dag";
            default: return "Hi";
        }
    }
}

Piping

export URL
echo $URL
#ping -c 5 $__
echo $URL
echo $USER_NAME

GitHub Action

https://github.com/b-nova-techhub/runme-example/blob/main/.github/workflows/b-nova-runme.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published