#!/bin/bash

set -e

. "${INSTALLER_DIR}/wizard"

input_start() {
	wiz_put "memcached/autoinstall"
	if wiz_ask ; then
		STATE="done"
	else
		echo "You must make a choice. Aborting."
		exit 1
	fi
}

state_machine() {
	case "$1" in
		"start")
			input_start
			;;
		"done")
			echo "DONE"
			exit 0
			;;
		*)
			echo "invalid state: ${STATE}"
			exit 1
			;;
	esac
}

wizard "start"
