+ PHP 8.1 stuff
+ Search
+ Updated clients. A cli and tui client written in Go.
-
+ + API fixes
1.0 Lykos - 2022-11-12
+ Initial release
-# Determine this makefile's path.
-# Be sure to place this BEFORE `include` directives, if any.
-THIS_FILE := $(lastword $(MAKEFILE_LIST))
-
all:
@echo "Options are: build and buildall"
Use at own risk and feel free to improve.
# Howto build
-Nothing special, just "go build -o scientia-cli" to use your own arch settings.
+Nothing special, just use the provide Makefile or directly "go build -o scientia-cli" to use your current os/arch settings.
# Usage
At first usage you need to create the config and the individual secret.
The path to the config file is printed.
Change the host address and update your server it with the secret, which is randomly created.
-
Read from a file
$ scientia-cli file.txt
or piped
$ cat file.txt | scientia-cli
-Commandline arguments:
+Commandline arguments (optional):
-create-config-file
Create default config file
-debug
"fmt"
"gopkg.in/yaml.v2"
"io"
- "io/ioutil"
"log"
"math/rand"
"net/http"
/**
* scientia
*
- * Copyright 2022 Johannes Keßler
+ * Copyright 2023 Johannes Keßler
*
* https://www.bananas-playground.net/projekt/scientia/
*
log.Println("data is being piped")
}
- bytes, _ := ioutil.ReadAll(os.Stdin)
+ bytes, _ := io.ReadAll(os.Stdin)
inputString = string(bytes)
}
}
if(DEBUG) error_log("Dump SERVER ".var_export($_SERVER,true));
-if(DEBUG) error_log("Dump SERVER ".var_export($_SERVER['REQUEST_METHOD'],true));
-if(DEBUG) error_log("Dump SERVER ".var_export($_SERVER['CONTENT_TYPE'],true));
## check if request is valid
$_create = false;
$filteredData = '';