summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2014-01-18 11:47:44 +0100
committercos <cos>2015-01-25 22:32:38 +0100
commitd8c8484335722115b6f184a49f04b78b5cfa012f (patch)
treeec376a1639ca6b26e90a62c9839dd471aa3e8918
parent06f9cbb3222ce11a029df2eaa79a7a73de574b67 (diff)
downloadmat-d8c8484335722115b6f184a49f04b78b5cfa012f.zip
Add interface for queue commands.
-rwxr-xr-xmat29
1 files changed, 29 insertions, 0 deletions
diff --git a/mat b/mat
index 642b110..2e130a1 100755
--- a/mat
+++ b/mat
@@ -467,6 +467,10 @@ sub cmd_help() {
print "relocate <portion_id> <new_storage>\n";
print "inventory [storage]\n";
print "shoppinglist <days_to_shop_for>\n";
+ print "queueshow (Yet to be implemented)\n";
+ print "queueadd (Yet to be implemented)\n";
+ print "queuerm (Yet to be implemented)\n";
+ print "queuemv (Yet to be implemented)\n";
}
sub interactive_edit_recipe_ingredients {
@@ -631,6 +635,23 @@ sub cmd_searchrecipes {
return 1;
}
+sub cmd_queueadd {
+ print "Yet to be implemented!\n";
+}
+
+sub cmd_queueshow {
+ print "Yet to be implemented!\n";
+}
+
+sub cmd_queuerm {
+ print "Yet to be implemented!\n";
+}
+
+sub cmd_queuemv {
+ print "Yet to be implemented!\n";
+}
+
+
sub cmd_shoppinglist {
# Argument is number of days to shop for
@@ -754,6 +775,14 @@ if ($ARGV[0]) {
print "Command failed!\n" unless (cmd_storeportion($ARGV[1], $ARGV[2], $ARGV[3]) >= 0);
} elsif ( $ARGV[0] eq "relocate") {
print "Command failed!\n" unless (cmd_relocate($ARGV[1], $ARGV[2]) >= 0);
+ } elsif ( $ARGV[0] eq "queueadd") {
+ print "Command failed!\n" unless (cmd_queueadd($ARGV[1], $ARGV[2]) >= 0);
+ } elsif ( $ARGV[0] eq "queuerm") {
+ print "Command failed!\n" unless (cmd_queuerm($ARGV[1], $ARGV[2]) >= 0);
+ } elsif ( $ARGV[0] eq "queuemv") {
+ print "Command failed!\n" unless (cmd_queuemv($ARGV[1], $ARGV[2]) >= 0);
+ } elsif ( $ARGV[0] eq "queueshow") {
+ print "Command failed!\n" unless (cmd_queueshow());
} elsif ( $ARGV[0] eq "shoppinglist") {
print "Command failed!\n" unless (cmd_shoppinglist($ARGV[1]) >= 0);
} else {