diff --git a/README.md b/README.md index e43cf3a0..47ccd727 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # herolib -a smaller version of crystallib with only the items we need for hero +a smaller version of herolib with only the items we need for hero > [documentation here](https://freeflowuniverse.github.io/herolib/) diff --git a/cli/compile.vsh b/cli/compile.vsh index d76e5ad7..8d9ef076 100755 --- a/cli/compile.vsh +++ b/cli/compile.vsh @@ -30,7 +30,7 @@ if additional_args.len > 0 { } // Change to the hero directory -hero_dir := os.join_path(os.home_dir(), 'code/github/freeflowuniverse/crystallib/cli/hero') +hero_dir := os.join_path(os.home_dir(), 'code/github/freeflowuniverse/herolib/cli/hero') os.chdir(hero_dir) or { panic('Failed to change directory to ${hero_dir}: ${err}') } // Set HEROPATH based on OS diff --git a/cli/compile_upload.sh b/cli/compile_upload.sh deleted file mode 100644 index f95ee466..00000000 --- a/cli/compile_upload.sh +++ /dev/null @@ -1,47 +0,0 @@ - - - -function s3_configure { - -SECRET_FILE="/${HOME}/code/git.ourworld.tf/despiegk/hero_secrets/mysecrets.sh" -if [ -f "$SECRET_FILE" ]; then - echo get secrets - source "$SECRET_FILE" -fi - -# Check if environment variables are set -if [ -z "$S3KEYID" ] || [ -z "$S3APPID" ]; then - echo "Error: S3KEYID or S3APPID is not set" - exit 1 -fi - -# Create rclone config file -mkdir -p "${HOME}/.config/rclone" -cat > "${HOME}/.config/rclone/rclone.conf" </dev/null) - if [ -z "$hero_path" ]; then - echo "Error: 'hero' command not found in PATH" >&2 - exit 1 - fi - set -x - s3_configure - # rclone_config=$(get_rclone_config) || { echo "$rclone_config"; exit 1; } - rclone --config="${HOME}/.config/rclone/rclone.conf" lsl b2:threefold/$MYPLATFORMID/ - rclone --config="${HOME}/.config/rclone/rclone.conf" copy "$hero_path" b2:threefold/$MYPLATFORMID/ -} - \ No newline at end of file diff --git a/examples/core/base/config_basic.vsh b/examples/core/base/config_basic.vsh index 029fe113..e2b56008 100755 --- a/examples/core/base/config_basic.vsh +++ b/examples/core/base/config_basic.vsh @@ -1,6 +1,6 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.base +import freeflowuniverse.herolib.core.base pub struct MyClient[T] { base.BaseConfig[T] diff --git a/examples/core/base/config_with_template_replacement.vsh b/examples/core/base/config_with_template_replacement.vsh index 3aa43f88..16924e93 100755 --- a/examples/core/base/config_with_template_replacement.vsh +++ b/examples/core/base/config_with_template_replacement.vsh @@ -1,7 +1,7 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.pathlib -import freeflowuniverse.crystallib.core.base +import freeflowuniverse.herolib.core.pathlib +import freeflowuniverse.herolib.core.base pub struct MyClient[T] { base.BaseConfig[T] diff --git a/examples/core/base/core_1.vsh b/examples/core/base/core_1.vsh index eaafe2f9..4c4aba7b 100755 --- a/examples/core/base/core_1.vsh +++ b/examples/core/base/core_1.vsh @@ -1,7 +1,7 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.base -import freeflowuniverse.crystallib.develop.gittools +import freeflowuniverse.herolib.core.base +import freeflowuniverse.herolib.develop.gittools pub struct MyClass { base.Base diff --git a/examples/core/codeparser/parse_embedded/example.vsh b/examples/core/codeparser/parse_embedded/example.vsh index 23c37787..a14eff26 100755 --- a/examples/core/codeparser/parse_embedded/example.vsh +++ b/examples/core/codeparser/parse_embedded/example.vsh @@ -1,8 +1,8 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run import os -import freeflowuniverse.crystallib.core.codeparser -import freeflowuniverse.crystallib.core.codemodel { Struct } +import freeflowuniverse.herolib.core.codeparser +import freeflowuniverse.herolib.core.codemodel { Struct } code_path := '${os.dir(@FILE)}/embedding.v' diff --git a/examples/core/db/db_do.v b/examples/core/db/db_do.v index 7786e938..4088cd57 100755 --- a/examples/core/db/db_do.v +++ b/examples/core/db/db_do.v @@ -1,9 +1,9 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run import time -import freeflowuniverse.crystallib.core.smartid -import freeflowuniverse.crystallib.data.ourtime -import freeflowuniverse.crystallib.core.db +import freeflowuniverse.herolib.core.smartid +import freeflowuniverse.herolib.data.ourtime +import freeflowuniverse.herolib.core.db pub struct MyStruct { db.Base diff --git a/examples/core/dbfs/dbfs1.vsh b/examples/core/dbfs/dbfs1.vsh index c6542a95..a8b37075 100755 --- a/examples/core/dbfs/dbfs1.vsh +++ b/examples/core/dbfs/dbfs1.vsh @@ -1,6 +1,6 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.data.dbfs +import freeflowuniverse.herolib.data.dbfs import time import os diff --git a/examples/core/generate.vsh b/examples/core/generate.vsh index 4b44acc0..c8399f56 100755 --- a/examples/core/generate.vsh +++ b/examples/core/generate.vsh @@ -1,5 +1,5 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.generator.installer +import freeflowuniverse.herolib.core.generator.installer -installer.scan('~/code/github/freeflowuniverse/crystallib/crystallib')! +installer.scan('~/code/github/freeflowuniverse/herolib/herolib')! diff --git a/examples/core/openapi/gitea/gitea_client/factory.v b/examples/core/openapi/gitea/gitea_client/factory.v index d082d8ec..7d0f48a3 100644 --- a/examples/core/openapi/gitea/gitea_client/factory.v +++ b/examples/core/openapi/gitea/gitea_client/factory.v @@ -1,7 +1,7 @@ module dagu // import os -import freeflowuniverse.crystallib.clients.httpconnection +import freeflowuniverse.herolib.clients.httpconnection import os struct GiteaClient[T] { diff --git a/examples/core/openapi/gitea/gitea_openapi.vsh b/examples/core/openapi/gitea/gitea_openapi.vsh index ba59608d..4a350960 100644 --- a/examples/core/openapi/gitea/gitea_openapi.vsh +++ b/examples/core/openapi/gitea/gitea_openapi.vsh @@ -2,7 +2,7 @@ import os import json -import freeflowuniverse.crystallib.core.openapi.gen +import freeflowuniverse.herolib.core.openapi.gen const spec_path = '${os.dir(@FILE)}/openapi.json' diff --git a/examples/core/openrpc/examples/openrpc_client/client.v b/examples/core/openrpc/examples/openrpc_client/client.v index f7f15451..2bd4d497 100644 --- a/examples/core/openrpc/examples/openrpc_client/client.v +++ b/examples/core/openrpc/examples/openrpc_client/client.v @@ -1,6 +1,6 @@ module openrpc_client -import freeflowuniverse.crystallib.data.jsonrpc { JsonRpcRequest } +import freeflowuniverse.herolib.data.jsonrpc { JsonRpcRequest } import net.websocket struct Client { diff --git a/examples/core/openrpc/examples/petstore_client/client.v b/examples/core/openrpc/examples/petstore_client/client.v index df91ad0f..8e0ccb3d 100644 --- a/examples/core/openrpc/examples/petstore_client/client.v +++ b/examples/core/openrpc/examples/petstore_client/client.v @@ -1,6 +1,6 @@ module petstore_client -import freeflowuniverse.crystallib.data.jsonrpc { JsonRpcRequest } +import freeflowuniverse.herolib.data.jsonrpc { JsonRpcRequest } import net.websocket struct Client { diff --git a/examples/core/openrpc/examples/petstore_client/methods.v b/examples/core/openrpc/examples/petstore_client/methods.v index d6dc8ee5..4eca6992 100644 --- a/examples/core/openrpc/examples/petstore_client/methods.v +++ b/examples/core/openrpc/examples/petstore_client/methods.v @@ -1,6 +1,6 @@ module petstore_client -import freeflowuniverse.crystallib.data.jsonrpc +import freeflowuniverse.herolib.data.jsonrpc // get_pets finds pets in the system that the user has access to by tags and within a limit // - tags: tags to filter by diff --git a/examples/core/pathlib/examples/list/path_list.vsh b/examples/core/pathlib/examples/list/path_list.vsh index 82379f7d..999f1dc3 100755 --- a/examples/core/pathlib/examples/list/path_list.vsh +++ b/examples/core/pathlib/examples/list/path_list.vsh @@ -1,6 +1,6 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.pathlib +import freeflowuniverse.herolib.core.pathlib import os const testpath3 = os.dir(@FILE) + '/../../..' diff --git a/examples/core/pathlib/examples/md5/paths_md5.vsh b/examples/core/pathlib/examples/md5/paths_md5.vsh index d7b0745c..bbe340e0 100755 --- a/examples/core/pathlib/examples/md5/paths_md5.vsh +++ b/examples/core/pathlib/examples/md5/paths_md5.vsh @@ -1,6 +1,6 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.pathlib +import freeflowuniverse.herolib.core.pathlib import os const testpath4 = os.dir(@FILE) + '../../' diff --git a/examples/core/pathlib/examples/scanner/path_scanner.vsh b/examples/core/pathlib/examples/scanner/path_scanner.vsh index adfbbbd6..7b481eca 100755 --- a/examples/core/pathlib/examples/scanner/path_scanner.vsh +++ b/examples/core/pathlib/examples/scanner/path_scanner.vsh @@ -1,7 +1,7 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.pathlib -import freeflowuniverse.crystallib.data.paramsparser +import freeflowuniverse.herolib.core.pathlib +import freeflowuniverse.herolib.data.paramsparser import os const testpath3 = os.dir(@FILE) + '/../..' diff --git a/examples/core/pathlib/examples/sha256/paths_sha256.vsh b/examples/core/pathlib/examples/sha256/paths_sha256.vsh index 90f0f988..589111e9 100755 --- a/examples/core/pathlib/examples/sha256/paths_sha256.vsh +++ b/examples/core/pathlib/examples/sha256/paths_sha256.vsh @@ -1,6 +1,6 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.core.pathlib +import freeflowuniverse.herolib.core.pathlib import os const testpath4 = os.dir(@FILE) + '/paths_sha256.vsh' diff --git a/examples/core/secrets_example.vsh b/examples/core/secrets_example.vsh index 1bf4fb38..9f83c6ff 100755 --- a/examples/core/secrets_example.vsh +++ b/examples/core/secrets_example.vsh @@ -1,6 +1,6 @@ #!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run -import freeflowuniverse.crystallib.crypt.secrets +import freeflowuniverse.herolib.crypt.secrets secrets.delete_passwd()! r := secrets.encrypt('aaa')! diff --git a/manual/documentation/docextractor.md b/manual/documentation/docextractor.md index b5a18482..29423a78 100644 --- a/manual/documentation/docextractor.md +++ b/manual/documentation/docextractor.md @@ -4,7 +4,7 @@ is a python tool to help us to get .md files into our manual copies all readme.md files from the different lib directors to -- e.g. $crystallib/manual/libreadme/installers_sysadmintools_actrunner.md +- e.g. $herolib/manual/libreadme/installers_sysadmintools_actrunner.md - note the name has the location inside of where info came from this allows us to make manual and to copy information from the readme's which are in library @@ -12,6 +12,6 @@ this allows us to make manual and to copy information from the readme's which ar to run ```bash -~/code/github/freeflowuniverse/crystallib/tools/doc_extractor/extractor.sh +~/code/github/freeflowuniverse/herolib/tools/doc_extractor/extractor.sh ```