Page MenuHomec4science

bamc_help.sh
No OneTemporary

File Metadata

Created
Sat, May 11, 20:08

bamc_help.sh

#!/bin/bash
function action_implemented() {
perma "Implemented functions:"
grep 'function action_' $DIR_LIB/* | grep -v grep | cut -d ' ' -f 2 | cut -d '(' -f 1 | cut -d '_' -f 2 | sort
return 0
}
function action_help() {
local item=$1 # Useless...
echo -e "${DarkGreen}USAGE:${NoColor} "$(basename $0)" [-p|--params p1=v1,p2-v2,...] [-o|--only item1,item2,...] action1 [action2 ...]
e.g.: $(basename $0) --params workspace=~/AMC_Workspace init
e.g.: $(basename $0) show
Parameters:
-----------
${DarkGreen}debug${NoColor} (GENERAL) print debugging messages
${DarkGreen}force${NoColor} (GENERAL) do not ask for user confirmation
${DarkGreen}workspace|w${NoColor} (GENERAL) name a specific workspace
${DarkGreen}exam|e${NoColor} (GENERAL) name a specific exam within the workspace
Items:
-----------
${DarkGreen}item1${NoColor} (GENERAL) items are the existing exams (as printed by the 'list' action)
Actions:
--------
${DarkGreen}sanity-checks${NoColor} (GENERAL) check system
${DarkGreen}init${NoColor} (WORKSPACE) create a new workspace in the current directory
${DarkGreen}add-exam${NoColor} (EXAMS) add a new exam in the current workspace
${DarkGreen}list${NoColor} (EXAMS) print list of exams in the current workspace
${DarkGreen}clean${NoColor} (PROJECTS) remove project and output directories
${DarkGreen}project${NoColor} (PROJECTS) (re)build the AMC project(s)
${DarkGreen}check${NoColor} (PROJECTS) check the generated AMC project compiles
${DarkGreen}check-questions${NoColor} (PROJECTS) check LaTeX syntax of the questions
${DarkGreen}students${NoColor} (PDF) build students list
${DarkGreen}blank${NoColor} (PDF) build a blank (anonymous) exam
${DarkGreen}catalog${NoColor} (PDF) build a catalog of questions
${DarkGreen}sample${NoColor} (PDF) build a sample (4 exams) exam
${DarkGreen}exam${NoColor} (PDF) build PDF exam"
return 0
}

Event Timeline