quiz_master

command module
v0.0.0-...-92a1ef8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Quiz Master App

Is a simple quiz master app using Cobra CLI with sqlite db for embedded local database storage for all the questions.

How to setup the quiz_master app?

  1. Clone this repo to your local machine and compile it accordingly based on your OS platform.
  2. If you have Make software installed, you can easily run it with this command "make build" or "make all" to setup, build, test
  3. If all is well, you can run the quiz_master app in your local machine.

App Features

  1. Main app interface image

  2. Help command, for e.g: quiz_master create_question --help image

  3. Command to create a new question, quiz_master create_question 1 "How many letters are there in the English alphabet?" 26 image

  4. Command to delete a question, quiz_master delete_question 1, there will be a prompt first to confirm user's action. image image

  5. Command to update the question, quiz_master update_question 1 "Test update" 25, if the question number is not found, throw and error instead. image

  6. Command to display all questions information, quiz_master questions image

  7. Command to display a single question with inputs from the user's for their answer, quiz_master question 1 image image

Documentation

Overview

Copyright © 2021 ITRepablik itrepablik@gmail.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL