o
odinpkg.dev
packages / tool / testownik_cli

testownik_cli

ver1.0.2tool

Testownik app made simply to work in your terminal

GPL-3.0 · updated 4 months ago

testownik_cli

testownik_cli is a testownik app for solving tests created by PWr students. This is a terminal version made to be as light as possible – no unneeded interface or, god forbid, .js

testownik_cli comes from test terminal, if someone was wondering.

Installation

No need, just start a binary and provide path, there will be no questions about making it your default ;)

Or if you want and you on linux system just move the binary to /usr/local/bin/

Usage

testownik_cli <path/to/directory_with_quesions> <flags>

flags

-a <num> - addintional repeats if you failed to answer correctly, default: 1
-i <num> - initial repeats for each question, default: 2
-m <num> - max repeats for each question, default: 3
-c - activate cheat mode
-d - disable ansi codes (not recomended, use if your term doesn't support them for any reason. But consider upgrading your term, it not 1975 anymore bruh). Hope your term supprorts UTF-8 at least.

How to write questions?

The same way you writing them for good old testownik

here is an ideal example:

X0001
Która z poniższych metod jest popularnym szyfrem z kluczem publicznym?
RC4
IDEA
DES
ElGamal

here is some examples from the test directory

More answers than defined at X -> last one is omitted

X01
Will this work if we will give more answers than defined at start?
No
Yes
What?

Less answers than defined at X -> one will be empty

X0100
Will this work if we will give less answers than defined at start?
No
Yes, but one question will be empty
Yes, but behaviour will be undefined

Is testownik_cli any good? -> Yes.

X010
Is testownik_cli any good?
no
definetly
maybe

Multichoice example -> separate numbers with ,

X1010
What about multichoice?
It is supported
To answer choose multiple answers you need to provide sequence of correct answers ex: 134
To answer choose multiple answers you need to provide sequence of correct answers separated by , ex: 1,3,4
I does not supported

No windows?

Yes, no windows. -> I once compiled for windows, and both windows terminal and powershell terminal appeared to be the utter garbage that does not have support for utf-8.