diff --git a/demo/data-/.show-it b/demo/data-/.show-it index db8c300..bfc4482 100644 --- a/demo/data-/.show-it +++ b/demo/data-/.show-it @@ -1,4 +1,5 @@ clear ls -l ---PAUSE--- +echo "live-server is running - press ctrl-c" live-server | micro index.html diff --git a/demo/scripts/show b/demo/scripts/show deleted file mode 100755 index c8680bc..0000000 --- a/demo/scripts/show +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash - -# Script: show -# Purpose: Reads commands line-by-line from a specified file (defaulting to 'show-it.txt') -# and executes each one. - -# --- Configuration --- -COMMAND_FILE="${1:-show-it}" -SKIP_COMMENT_LINES=true -PAUSE_MARKER="---PAUSE---" - -# --- Execution --- - -# Check if the command file exists -if [ ! -f "$COMMAND_FILE" ]; then - echo "Error: Command file not found at '$COMMAND_FILE'" >&2 - exit 1 -fi - -#echo "--- START: Executing commands from $COMMAND_FILE ---" - -# Read the file line by line -while IFS= read -r command_line -do - # Trim leading and trailing whitespace - command_line=$(echo "$command_line" | xargs) - - # Skip empty lines - if [ -z "$command_line" ]; then - continue - fi - - # Check for the pause marker - if [ "$command_line" = "$PAUSE_MARKER" ]; then - #echo "" - #echo "========== PAUSE ==========" - # Wait for the user to press ENTER, reading explicitly from the terminal - read -r -p "waiting... (press enter)" < /dev/tty - #echo "===========================" - continue - fi - - # Skip lines starting with # if enabled (no logging for cleaner output) - if $SKIP_COMMENT_LINES && [[ "$command_line" =~ ^# ]]; then - continue - fi - - # --- Less Verbose Execution Block --- - #echo "" - # Print the command line clearly before execution - #echo "\$ $command_line" - - # Execute the command line - eval "$command_line" - - # Only report non-zero (failure) exit status - EXIT_STATUS=$? - if [ $EXIT_STATUS -ne 0 ]; then - echo "!!! COMMAND FAILED (Status $EXIT_STATUS) !!!" >&2 - fi - # --- End Execution Block --- - -done < "$COMMAND_FILE" - -#echo "" -#echo "--- END: Script execution complete ---" \ No newline at end of file diff --git a/demo/scripts/show-it b/demo/scripts/show-it deleted file mode 100644 index 381b262..0000000 --- a/demo/scripts/show-it +++ /dev/null @@ -1,6 +0,0 @@ -ls -al -micro show ----PAUSE--- -echo "see this shit!?" -ls -al ----PAUSE--- diff --git a/demo/sqlite/.show-it b/demo/sqlite/.show-it deleted file mode 100644 index fa28d5e..0000000 --- a/demo/sqlite/.show-it +++ /dev/null @@ -1 +0,0 @@ -fx countries.json diff --git a/demo/sqlite/csv_countries.sql b/demo/sqlite/csv_countries.sql deleted file mode 100644 index ee8def7..0000000 --- a/demo/sqlite/csv_countries.sql +++ /dev/null @@ -1,19 +0,0 @@ -.mode csv -.headers on -.output result.csv - -WITH raw AS ( - SELECT - value AS country - FROM json_each(readfile('countries.json')) -) - -SELECT - json_extract(country, '$.translations.deu.common') AS german_name, - json_extract(country, '$.population') AS population, - json_extract(country, '$.capital[0]') AS capital, - json_extract(country, '$.timezones[0]') AS timezones -FROM raw -ORDER BY german_name; - -.output stdout diff --git a/demo/sqlite/index.html b/demo/sqlite/index.html deleted file mode 100644 index 3334f0c..0000000 --- a/demo/sqlite/index.html +++ /dev/null @@ -1,219 +0,0 @@ - - -
- -| Name (DE) | Population | Capital | TLD | Timezones |
|---|---|---|---|---|
| Afghanistan | 40218234 | Kabul | .af | ["UTC+04:30"] |
| Albanien | 2837743 | Tirana | .al | ["UTC+01:00"] |
| Algerien | 44700000 | Algiers | .dz | ["UTC+01:00"] |
| Andorra | 77265 | Andorra la Vella | .ad | ["UTC+01:00"] |
| Angola | 32866268 | Luanda | .ao | ["UTC+01:00"] |
| Antigua und Barbuda | 97928 | Saint John's | .ag | ["UTC-04:00"] |
| Argentinien | 45376763 | Buenos Aires | .ar | ["UTC-03:00"] |
| Armenien | 2963234 | Yerevan | .am | ["UTC+04:00"] |
| Aserbaidschan | 10110116 | Baku | .az | ["UTC+04:00"] |
| Australien | 25687041 | Canberra | .au | ["UTC+05:00","UTC+06:30","UTC+07:00","UTC+08:00","UTC+09:30","UTC+10:00","UTC+10:30","UTC+11:30"] |
| Bahamas | 393248 | Nassau | .bs | ["UTC-05:00"] |
| Bahrain | 1701583 | Manama | .bh | ["UTC+03:00"] |
| Bangladesch | 164689383 | Dhaka | .bd | ["UTC+06:00"] |
| Barbados | 287371 | Bridgetown | .bb | ["UTC-04:00"] |
| Belgien | 11555997 | Brussels | .be | ["UTC+01:00"] |
| Belize | 397621 | Belmopan | .bz | ["UTC-06:00"] |
| Benin | 12123198 | Porto-Novo | .bj | ["UTC+01:00"] |
| Bhutan | 771612 | Thimphu | .bt | ["UTC+06:00"] |
| Bolivien | 11673029 | Sucre | .bo | ["UTC-04:00"] |
| Bosnien und Herzegowina | 3280815 | Sarajevo | .ba | ["UTC+01:00"] |
| Botswana | 2351625 | Gaborone | .bw | ["UTC+02:00"] |
| Brasilien | 212559409 | Brasília | .br | ["UTC-05:00","UTC-04:00","UTC-03:00","UTC-02:00"] |
| Brunei | 437483 | Bandar Seri Begawan | .bn | ["UTC+08:00"] |
| Bulgarien | 6927288 | Sofia | .bg | ["UTC+02:00"] |
| Burkina Faso | 20903278 | Ouagadougou | .bf | ["UTC"] |
| Burundi | 11890781 | Gitega | .bi | ["UTC+02:00"] |
| Chile | 19116209 | Santiago | .cl | ["UTC-06:00","UTC-04:00"] |
| China | 1402112000 | Beijing | .cn | ["UTC+08:00"] |
| Costa Rica | 5094114 | San José | .cr | ["UTC-06:00"] |
| Deutschland | 83240525 | Berlin | .de | ["UTC+01:00"] |
| Dominica | 71991 | Roseau | .dm | ["UTC-04:00"] |
| Dominikanische Republik | 10847904 | Santo Domingo | .do | ["UTC-04:00"] |
| Dschibuti | 988002 | Djibouti | .dj | ["UTC+03:00"] |
| Dänemark | 5831404 | Copenhagen | .dk | ["UTC-04:00","UTC-03:00","UTC-01:00","UTC","UTC+01:00"] |
| Ecuador | 17643060 | Quito | .ec | ["UTC-06:00","UTC-05:00"] |
| El Salvador | 6486201 | San Salvador | .sv | ["UTC-06:00"] |
| Elfenbeinküste | 26378275 | Yamoussoukro | .ci | ["UTC"] |
| Eritrea | 5352000 | Asmara | .er | ["UTC+03:00"] |
| Estland | 1331057 | Tallinn | .ee | ["UTC+02:00"] |
| Fidschi | 896444 | Suva | .fj | ["UTC+12:00"] |
| Finnland | 5530719 | Helsinki | .fi | ["UTC+02:00"] |
| Frankreich | 67391582 | Paris | .fr | ["UTC-10:00","UTC-09:30","UTC-09:00","UTC-08:00","UTC-04:00","UTC-03:00","UTC+01:00","UTC+02:00","UTC+03:00","UTC+04:00","UTC+05:00","UTC+10:00","UTC+11:00","UTC+12:00"] |
| Gabun | 2225728 | Libreville | .ga | ["UTC+01:00"] |
| Gambia | 2416664 | Banjul | .gm | ["UTC+00:00"] |
| Georgien | 3714000 | Tbilisi | .ge | ["UTC+04:00"] |
| Ghana | 31072945 | Accra | .gh | ["UTC"] |
| Grenada | 112519 | St. George's | .gd | ["UTC-04:00"] |
| Griechenland | 10715549 | Athens | .gr | ["UTC+02:00"] |
| Guatemala | 16858333 | Guatemala City | .gt | ["UTC-06:00"] |
| Guinea | 13132792 | Conakry | .gn | ["UTC"] |
| Guinea-Bissau | 1967998 | Bissau | .gw | ["UTC"] |
| Guyana | 786559 | Georgetown | .gy | ["UTC-04:00"] |
| Haiti | 11402533 | Port-au-Prince | .ht | ["UTC-05:00"] |
| Honduras | 9904608 | Tegucigalpa | .hn | ["UTC-06:00"] |
| Indien | 1380004385 | New Delhi | .in | ["UTC+05:30"] |
| Indonesien | 273523621 | Jakarta | .id | ["UTC+07:00","UTC+08:00","UTC+09:00"] |
| Irak | 40222503 | Baghdad | .iq | ["UTC+03:00"] |
| Iran | 83992953 | Tehran | .ir | ["UTC+03:30"] |
| Irland | 4994724 | Dublin | .ie | ["UTC"] |
| Island | 366425 | Reykjavik | .is | ["UTC"] |
| Israel | 9216900 | Jerusalem | .il | ["UTC+02:00"] |
| Italien | 59554023 | Rome | .it | ["UTC+01:00"] |
| Jamaika | 2961161 | Kingston | .jm | ["UTC-05:00"] |
| Japan | 125836021 | Tokyo | .jp | ["UTC+09:00"] |
| Jemen | 29825968 | Sana'a | .ye | ["UTC+03:00"] |
| Jordanien | 10203140 | Amman | .jo | ["UTC+03:00"] |
| Kambodscha | 16718971 | Phnom Penh | .kh | ["UTC+07:00"] |
| Kamerun | 26545864 | Yaoundé | .cm | ["UTC+01:00"] |
| Kanada | 38005238 | Ottawa | .ca | ["UTC-08:00","UTC-07:00","UTC-06:00","UTC-05:00","UTC-04:00","UTC-03:30"] |
| Kap Verde | 555988 | Praia | .cv | ["UTC-01:00"] |
| Kasachstan | 18754440 | Astana | .kz | ["UTC+05:00","UTC+06:00"] |
| Katar | 2881060 | Doha | .qa | ["UTC+03:00"] |
| Kenia | 53771300 | Nairobi | .ke | ["UTC+03:00"] |
| Kirgisistan | 6591600 | Bishkek | .kg | ["UTC+06:00"] |
| Kiribati | 119446 | South Tarawa | .ki | ["UTC+12:00","UTC+13:00","UTC+14:00"] |
| Kolumbien | 50882884 | Bogotá | .co | ["UTC-05:00"] |
| Komoren | 869595 | Moroni | .km | ["UTC+03:00"] |
| Kongo | 5657000 | Brazzaville | .cg | ["UTC+01:00"] |
| Kongo (Dem. Rep.) | 108407721 | Kinshasa | .cd | ["UTC+01:00","UTC+02:00"] |
| Kosovo | 1775378 | Pristina | ["UTC+01:00"] | |
| Kroatien | 4047200 | Zagreb | .hr | ["UTC+01:00"] |
| Kuba | 11326616 | Havana | .cu | ["UTC-05:00"] |
| Kuwait | 4270563 | Kuwait City | .kw | ["UTC+03:00"] |
| Laos | 7275556 | Vientiane | .la | ["UTC+07:00"] |
| Lesotho | 2142252 | Maseru | .ls | ["UTC+02:00"] |
| Lettland | 1901548 | Riga | .lv | ["UTC+02:00"] |
| Libanon | 6825442 | Beirut | .lb | ["UTC+02:00"] |
| Liberia | 5057677 | Monrovia | .lr | ["UTC"] |
| Libyen | 6871287 | Tripoli | .ly | ["UTC+01:00"] |
| Liechtenstein | 38137 | Vaduz | .li | ["UTC+01:00"] |
| Litauen | 2794700 | Vilnius | .lt | ["UTC+02:00"] |
| Luxemburg | 632275 | Luxembourg | .lu | ["UTC+01:00"] |
| Madagaskar | 27691019 | Antananarivo | .mg | ["UTC+03:00"] |
| Malawi | 19129955 | Lilongwe | .mw | ["UTC+02:00"] |
| Malaysia | 32365998 | Kuala Lumpur | .my | ["UTC+08:00"] |
| Malediven | 540542 | Malé | .mv | ["UTC+05:00"] |
| Mali | 20250834 | Bamako | .ml | ["UTC"] |
| Malta | 525285 | Valletta | .mt | ["UTC+01:00"] |
| Marokko | 36910558 | Rabat | .ma | ["UTC"] |
| Marshallinseln | 59194 | Majuro | .mh | ["UTC+12:00"] |
| Mauretanien | 4649660 | Nouakchott | .mr | ["UTC"] |
| Mauritius | 1265740 | Port Louis | .mu | ["UTC+04:00"] |
| Mexiko | 128932753 | Mexico City | .mx | ["UTC-08:00","UTC-07:00","UTC-06:00"] |
| Mikronesien | 115021 | Palikir | .fm | ["UTC+10:00","UTC+11:00"] |
| Moldawien | 2617820 | Chișinău | .md | ["UTC+02:00"] |
| Monaco | 39244 | Monaco | .mc | ["UTC+01:00"] |
| Mongolei | 3278292 | Ulan Bator | .mn | ["UTC+07:00","UTC+08:00"] |
| Montenegro | 621718 | Podgorica | .me | ["UTC+01:00"] |
| Mosambik | 31255435 | Maputo | .mz | ["UTC+02:00"] |
| Myanmar | 54409794 | Naypyidaw | .mm | ["UTC+06:30"] |
| Namibia | 2540916 | Windhoek | .na | ["UTC+01:00"] |
| Nauru | 10834 | Yaren | .nr | ["UTC+12:00"] |
| Nepal | 29136808 | Kathmandu | .np | ["UTC+05:45"] |
| Neuseeland | 5084300 | Wellington | .nz | ["UTC-11:00","UTC-10:00","UTC+12:00","UTC+12:45","UTC+13:00"] |
| Nicaragua | 6624554 | Managua | .ni | ["UTC-06:00"] |
| Niederlande | 16655799 | Amsterdam | .nl | ["UTC+01:00"] |
| Niger | 24206636 | Niamey | .ne | ["UTC+01:00"] |
| Nigeria | 206139587 | Abuja | .ng | ["UTC+01:00"] |
| Nordkorea | 25778815 | Pyongyang | .kp | ["UTC+09:00"] |
| Nordmazedonien | 2077132 | Skopje | .mk | ["UTC+01:00"] |
| Norwegen | 5379475 | Oslo | .no | ["UTC+01:00"] |
| Oman | 5106622 | Muscat | .om | ["UTC+04:00"] |
| Osttimor | 1318442 | Dili | .tl | ["UTC+09:00"] |
| Pakistan | 220892331 | Islamabad | .pk | ["UTC+05:00"] |
| Palau | 18092 | Ngerulmud | .pw | ["UTC+09:00"] |
| Panama | 4314768 | Panama City | .pa | ["UTC-05:00"] |
| Papua-Neuguinea | 8947027 | Port Moresby | .pg | ["UTC+10:00"] |
| Paraguay | 7132530 | Asunción | .py | ["UTC-04:00"] |
| Peru | 32971846 | Lima | .pe | ["UTC-05:00"] |
| Philippinen | 109581085 | Manila | .ph | ["UTC+08:00"] |
| Polen | 37950802 | Warsaw | .pl | ["UTC+01:00"] |
| Portugal | 10305564 | Lisbon | .pt | ["UTC-01:00","UTC"] |
| Ruanda | 12952209 | Kigali | .rw | ["UTC+02:00"] |
| Rumänien | 19286123 | Bucharest | .ro | ["UTC+02:00"] |
| Russland | 144104080 | Moscow | .ru | ["UTC+03:00","UTC+04:00","UTC+06:00","UTC+07:00","UTC+08:00","UTC+09:00","UTC+10:00","UTC+11:00","UTC+12:00"] |
| Salomonen | 686878 | Honiara | .sb | ["UTC+11:00"] |
| Sambia | 18383956 | Lusaka | .zm | ["UTC+02:00"] |
| Samoa | 198410 | Apia | .ws | ["UTC+13:00"] |
| San Marino | 33938 | City of San Marino | .sm | ["UTC+01:00"] |
| Saudi-Arabien | 34813867 | Riyadh | .sa | ["UTC+03:00"] |
| Schweden | 10353442 | Stockholm | .se | ["UTC+01:00"] |
| Schweiz | 8654622 | Bern | .ch | ["UTC+01:00"] |
| Senegal | 16743930 | Dakar | .sn | ["UTC"] |
| Serbien | 6908224 | Belgrade | .rs | ["UTC+01:00"] |
| Seychellen | 98462 | Victoria | .sc | ["UTC+04:00"] |
| Sierra Leone | 7976985 | Freetown | .sl | ["UTC"] |
| Simbabwe | 14862927 | Harare | .zw | ["UTC+02:00"] |
| Singapur | 5685807 | Singapore | .sg | ["UTC+08:00"] |
| Slowakei | 5458827 | Bratislava | .sk | ["UTC+01:00"] |
| Slowenien | 2100126 | Ljubljana | .si | ["UTC+01:00"] |
| Somalia | 15893219 | Mogadishu | .so | ["UTC+03:00"] |
| Spanien | 47351567 | Madrid | .es | ["UTC","UTC+01:00"] |
| Sri Lanka | 21919000 | Sri Jayawardenepura Kotte | .lk | ["UTC+05:30"] |
| St. Kitts und Nevis | 53192 | Basseterre | .kn | ["UTC-04:00"] |
| St. Lucia | 183629 | Castries | .lc | ["UTC-04:00"] |
| St. Vincent und die Grenadinen | 110947 | Kingstown | .vc | ["UTC-04:00"] |
| Sudan | 43849269 | Khartoum | .sd | ["UTC+03:00"] |
| Suriname | 586634 | Paramaribo | .sr | ["UTC-03:00"] |
| Swasiland | 1160164 | Mbabane | .sz | ["UTC+02:00"] |
| Syrien | 17500657 | Damascus | .sy | ["UTC+02:00"] |
| São Tomé und Príncipe | 219161 | São Tomé | .st | ["UTC"] |
| Südafrika | 59308690 | Pretoria | .za | ["UTC+02:00"] |
| Südkorea | 51780579 | Seoul | .kr | ["UTC+09:00"] |
| Südsudan | 11193729 | Juba | .ss | ["UTC+03:00"] |
| Tadschikistan | 9537642 | Dushanbe | .tj | ["UTC+05:00"] |
| Tansania | 59734213 | Dodoma | .tz | ["UTC+03:00"] |
| Thailand | 69799978 | Bangkok | .th | ["UTC+07:00"] |
| Togo | 8278737 | Lomé | .tg | ["UTC"] |
| Tonga | 105697 | Nuku'alofa | .to | ["UTC+13:00"] |
| Trinidad und Tobago | 1399491 | Port of Spain | .tt | ["UTC-04:00"] |
| Tschad | 16425859 | N'Djamena | .td | ["UTC+01:00"] |
| Tschechien | 10698896 | Prague | .cz | ["UTC+01:00"] |
| Tunesien | 11818618 | Tunis | .tn | ["UTC+01:00"] |
| Turkmenistan | 6031187 | Ashgabat | .tm | ["UTC+05:00"] |
| Tuvalu | 11792 | Funafuti | .tv | ["UTC+12:00"] |
| Türkei | 84339067 | Ankara | .tr | ["UTC+03:00"] |
| Uganda | 45741000 | Kampala | .ug | ["UTC+03:00"] |
| Ukraine | 44134693 | Kyiv | .ua | ["UTC+02:00"] |
| Ungarn | 9749763 | Budapest | .hu | ["UTC+01:00"] |
| Uruguay | 3473727 | Montevideo | .uy | ["UTC-03:00"] |
| Usbekistan | 34232050 | Tashkent | .uz | ["UTC+05:00"] |
| Vanuatu | 307150 | Port Vila | .vu | ["UTC+11:00"] |
| Vatikanstadt | 451 | Vatican City | .va | ["UTC+01:00"] |
| Venezuela | 28435943 | Caracas | .ve | ["UTC-04:00"] |
| Vereinigte Arabische Emirate | 9890400 | Abu Dhabi | .ae | ["UTC+04:00"] |
| Vereinigte Staaten | 329484123 | Washington, D.C. | .us | ["UTC-12:00","UTC-11:00","UTC-10:00","UTC-09:00","UTC-08:00","UTC-07:00","UTC-06:00","UTC-05:00","UTC-04:00","UTC+10:00","UTC+12:00"] |
| Vereinigtes Königreich | 67215293 | London | .uk | ["UTC-08:00","UTC-05:00","UTC-04:00","UTC-03:00","UTC-02:00","UTC","UTC+01:00","UTC+02:00","UTC+06:00"] |
| Vietnam | 97338583 | Hanoi | .vn | ["UTC+07:00"] |
| Weißrussland | 9398861 | Minsk | .by | ["UTC+03:00"] |
| Zentralafrikanische Republik | 4829764 | Bangui | .cf | ["UTC+01:00"] |
| Zypern | 1207361 | Nicosia | .cy | ["UTC+02:00"] |
| Ägypten | 102334403 | Cairo | .eg | ["UTC+02:00"] |
| Äquatorialguinea | 1402985 | Malabo | .gq | ["UTC+01:00"] |
| Äthiopien | 114963583 | Addis Ababa | .et | ["UTC+03:00"] |
| Österreich | 8917205 | Vienna | .at | ["UTC+01:00"] |