From d9a69f2f4c861946f43fb8c8cd4c7c431a6cf266 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 15 Dec 2024 06:11:19 +0200 Subject: New function in 'ak fs' '--net-cat-from-map --- modules/articles/main.sh | 20 +++++++++++++++++++- modules/categories/main.sh | 20 +++++++++++++++++++- modules/comments/main.sh | 20 +++++++++++++++++++- modules/files/main.sh | 20 +++++++++++++++++++- modules/folders/main.sh | 20 +++++++++++++++++++- modules/follow/lib.sh | 18 ++++++++++++++++++ modules/follow/main.sh | 20 +++++++++++++++++++- modules/mixtapes/lib.sh | 20 +++++++++++++++++++- modules/mixtapes/main.sh | 20 +++++++++++++++++++- modules/news/lib.sh | 18 ++++++++++++++++++ modules/news/main.sh | 20 +++++++++++++++++++- modules/reference/main.sh | 20 +++++++++++++++++++- modules/repositories/main.sh | 19 +++++++++++++++++++ modules/roadmap/main.sh | 22 +++++++++++++++++++++- modules/smfiles/lib.sh | 18 ++++++++++++++++++ modules/smfiles/main.sh | 20 +++++++++++++++++++- modules/todos/main.sh | 21 +++++++++++++++++++-- 17 files changed, 322 insertions(+), 14 deletions(-) (limited to 'modules') diff --git a/modules/articles/main.sh b/modules/articles/main.sh index 04033d0..c142725 100755 --- a/modules/articles/main.sh +++ b/modules/articles/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## -h, --help Prints this help message ## index Prints an indexed table of your articles files @@ -8,7 +26,7 @@ ## articlesletter and it's going to be saved ## fullprogrampath="$(realpath $0)" -PROGRAM=$(basename $0) +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Articles module for Arching Kaos" source $AK_LIBDIR/_ak_log diff --git a/modules/categories/main.sh b/modules/categories/main.sh index cd2d0dd..68d3c12 100755 --- a/modules/categories/main.sh +++ b/modules/categories/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## -h, --help Prints this help message" ## index Prints an indexed table of your news files" @@ -8,7 +26,7 @@ ## newsletter and it's going to be saved" ## AK_CATEGORIES="$AK_WORKDIR/categories" -PROGRAM="$(basename $0)" +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="A module for adding and refering zblocks to categories" source $AK_LIBDIR/_ak_log diff --git a/modules/comments/main.sh b/modules/comments/main.sh index 8fedaca..1e88a52 100755 --- a/modules/comments/main.sh +++ b/modules/comments/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## -h, --help Prints this help message" ## index Prints an indexed table of your comments files" @@ -7,7 +25,7 @@ ## commentsletter and it's going to be saved" ## fullprogrampath="$(realpath $0)" -PROGRAM="$(basename $0)" +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Comments module for Arching Kaos" source $AK_LIBDIR/_ak_log diff --git a/modules/files/main.sh b/modules/files/main.sh index 5dcb432..72fb752 100755 --- a/modules/files/main.sh +++ b/modules/files/main.sh @@ -1,11 +1,29 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## The following creates a files data message ## ## -h, --help Prints this help message ## fullprogrampath="$(realpath $0)" -PROGRAM=$(basename $0) +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Module for adding files" ZFILESDIR="$AK_WORKDIR/files" TEMP="/tmp/aktmp" diff --git a/modules/folders/main.sh b/modules/folders/main.sh index 792531c..4f4822a 100755 --- a/modules/folders/main.sh +++ b/modules/folders/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## The following creates a folder data message ## ## @@ -6,7 +24,7 @@ ## add Try ak-folders add ## fullprogrampath="$(realpath $0)" -PROGRAM="$(basename $0)" +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Module for adding folders" ZFOLDERSDIR="$AK_WORKDIR/folders" TEMP="/tmp/aktmp" diff --git a/modules/follow/lib.sh b/modules/follow/lib.sh index 3186db5..885331e 100755 --- a/modules/follow/lib.sh +++ b/modules/follow/lib.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### source $AK_LIBDIR/_ak_ipfs diff --git a/modules/follow/main.sh b/modules/follow/main.sh index 2da589d..55fc2c6 100755 --- a/modules/follow/main.sh +++ b/modules/follow/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## You can maintain a list of friendly zchains or ids ## @@ -10,7 +28,7 @@ ## -u, --unfollow Unfollows a ... ## fullprogrampath="$(realpath $0)" -PROGRAM="$(realpath $0 | rev |cut -d '/' -f 2 | rev)" +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Following stuff" source $AK_LIBDIR/_ak_log diff --git a/modules/mixtapes/lib.sh b/modules/mixtapes/lib.sh index 04551e0..daac6ca 100755 --- a/modules/mixtapes/lib.sh +++ b/modules/mixtapes/lib.sh @@ -1,4 +1,22 @@ -#!/bin/bash +#!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs diff --git a/modules/mixtapes/main.sh b/modules/mixtapes/main.sh index 2f6deeb..a9373f6 100755 --- a/modules/mixtapes/main.sh +++ b/modules/mixtapes/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## The following creates a mixtape data message ## @@ -10,7 +28,7 @@ ## # We can extend it by calling the _ak_zblock_pack.sh mixtape/add data ## ORIGINAL LINE fullprogrampath="$(realpath $0)" -PROGRAM="$(realpath $0 | rev | cut -d '/' -f 2 | rev)" +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="AK mixtape block creator" source $AK_LIBDIR/_ak_script source $AK_MODULESDIR/$PROGRAM/lib.sh diff --git a/modules/news/lib.sh b/modules/news/lib.sh index 2001a2c..44387fc 100755 --- a/modules/news/lib.sh +++ b/modules/news/lib.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs source $AK_LIBDIR/_ak_gpg diff --git a/modules/news/main.sh b/modules/news/main.sh index 5b7f394..9fa49de 100755 --- a/modules/news/main.sh +++ b/modules/news/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## -h, --help Prints this help message ## -l, --local-index Prints an indexed table of your news files @@ -16,7 +34,7 @@ ## NEWS zblock ## fullprogrampath="$(realpath $0)" -PROGRAM="$(realpath $0 | rev |cut -d '/' -f 2 | rev)" +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Module to read, create and add zblocks" source $AK_LIBDIR/_ak_script diff --git a/modules/reference/main.sh b/modules/reference/main.sh index 362de0a..88c6e37 100755 --- a/modules/reference/main.sh +++ b/modules/reference/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## #TODO ## All you need to know is that there are two options available: ## -h, --help Prints this help message @@ -8,7 +26,7 @@ ## create [ref] [to] Vim is going to pop up, you will write and save your ## referencesletter and it's going to be saved fullprogrampath="$(realpath $0)" -PROGRAM=$(basename $0) +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Quick description" diff --git a/modules/repositories/main.sh b/modules/repositories/main.sh index fa8263a..9c65bf9 100755 --- a/modules/repositories/main.sh +++ b/modules/repositories/main.sh @@ -1,5 +1,24 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### source $AK_LIBDIR/_ak_zblock +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" REPODIR="$HOME/projects" BAREDIR="$HOME/bare" REPOSTORE="$HOME/.arching-kaos/repostore" diff --git a/modules/roadmap/main.sh b/modules/roadmap/main.sh index d20ea58..72c7975 100755 --- a/modules/roadmap/main.sh +++ b/modules/roadmap/main.sh @@ -1,5 +1,25 @@ #!/usr/bin/env bash -echo "$(basename $0) - Not implemented" +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" +source $AK_LIBDIR/_ak_script +_ak_not_implemented exit 1 title(){ diff --git a/modules/smfiles/lib.sh b/modules/smfiles/lib.sh index fe39eae..6e90964 100755 --- a/modules/smfiles/lib.sh +++ b/modules/smfiles/lib.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs diff --git a/modules/smfiles/main.sh b/modules/smfiles/main.sh index 9190fe1..55284e1 100755 --- a/modules/smfiles/main.sh +++ b/modules/smfiles/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## sm files ## ## -h, --help Prints this help message @@ -12,7 +30,7 @@ pwd > .pwd CRD=$(cat .pwd) fullprogrampath="$(realpath $0)" -PROGRAM="$(realpath $0 | rev |cut -d '/' -f 2 | rev)" +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Module to files in zchain" source $AK_LIBDIR/_ak_log diff --git a/modules/todos/main.sh b/modules/todos/main.sh index fa000dd..3970c3c 100755 --- a/modules/todos/main.sh +++ b/modules/todos/main.sh @@ -1,4 +1,22 @@ #!/usr/bin/env bash +### +### arching-kaos-tools +### Tools to interact and build an Arching Kaos Infochain +### Copyright (C) 2021 - 2025 kaotisk +### +### This program is free software: you can redistribute it and/or modify +### it under the terms of the GNU General Public License as published by +### the Free Software Foundation, either version 3 of the License, or +### (at your option) any later version. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program. If not, see . +### ## ## Brief description ## @@ -12,9 +30,8 @@ ## todosletter and it's going to be saved ## fullprogrampath="$(realpath $0)" -PROGRAM=$(basename $0) +PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)" descriptionString="Quick description" -PROGRAM="$(basename $0)" source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_script source $AK_LIBDIR/_ak_ipfs -- cgit v1.2.3