aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-15 06:11:19 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-15 06:11:19 +0200
commitd9a69f2f4c861946f43fb8c8cd4c7c431a6cf266 (patch)
treee1c6c2644518e2a2e43f55acf1180545d3c2fc8e /modules
parent0fbfbb71a006203137f8f0f905cb55a277298735 (diff)
downloadarching-kaos-tools-master.tar.gz
arching-kaos-tools-master.tar.bz2
arching-kaos-tools-master.zip
New function in 'ak fs' '--net-cat-from-mapHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/articles/main.sh20
-rwxr-xr-xmodules/categories/main.sh20
-rwxr-xr-xmodules/comments/main.sh20
-rwxr-xr-xmodules/files/main.sh20
-rwxr-xr-xmodules/folders/main.sh20
-rwxr-xr-xmodules/follow/lib.sh18
-rwxr-xr-xmodules/follow/main.sh20
-rwxr-xr-xmodules/mixtapes/lib.sh20
-rwxr-xr-xmodules/mixtapes/main.sh20
-rwxr-xr-xmodules/news/lib.sh18
-rwxr-xr-xmodules/news/main.sh20
-rwxr-xr-xmodules/reference/main.sh20
-rwxr-xr-xmodules/repositories/main.sh19
-rwxr-xr-xmodules/roadmap/main.sh22
-rwxr-xr-xmodules/smfiles/lib.sh18
-rwxr-xr-xmodules/smfiles/main.sh20
-rwxr-xr-xmodules/todos/main.sh21
17 files changed, 322 insertions, 14 deletions
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 <http://www.gnu.org/licenses/>.
+###
##
## -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 <http://www.gnu.org/licenses/>.
+###
##
## -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 <http://www.gnu.org/licenses/>.
+###
##
## -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 <http://www.gnu.org/licenses/>.
+###
##
## 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 <http://www.gnu.org/licenses/>.
+###
## The following creates a folder data message
##
##
@@ -6,7 +24,7 @@
## add <folder> Try ak-folders add <folder>
##
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 <http://www.gnu.org/licenses/>.
+###
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 <http://www.gnu.org/licenses/>.
+###
##
## 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 <http://www.gnu.org/licenses/>.
+###
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 <http://www.gnu.org/licenses/>.
+###
##
## 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 <http://www.gnu.org/licenses/>.
+###
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 <http://www.gnu.org/licenses/>.
+###
##
## -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 <http://www.gnu.org/licenses/>.
+###
## #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 <http://www.gnu.org/licenses/>.
+###
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 <http://www.gnu.org/licenses/>.
+###
+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 <http://www.gnu.org/licenses/>.
+###
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 <http://www.gnu.org/licenses/>.
+###
## 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 <http://www.gnu.org/licenses/>.
+###
##
## 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