created install function

This commit is contained in:
Ruben Shekspir 2019-04-28 16:58:14 +04:00
parent 83ebcf1b6e
commit 654ca13405
3 changed files with 16 additions and 4 deletions

View file

@ -1,6 +1,13 @@
MODULE PackageFileParser;
IMPORT
JsonParser
JsonParser,
Logger;
PROCEDURE install*;
BEGIN
Logger.Log("Starting install process");
END install;
BEGIN
END PackageFileParser.

View file

@ -10,6 +10,7 @@ all:
../diaspora2hugo/src/lists/List.Mod \
../CharacterStack.Mod \
../JsonParser.Mod \
../PackageFileParser.Mod \
../opium.Mod -m
clean:

View file

@ -23,7 +23,11 @@ BEGIN
END parseArgs;
BEGIN
IF Strings.Match(command, "") THEN help
ELSE IF Strings.Match(command, "install") THEN PackageFileParser.install END;
parseArgs(command);
IF Strings.Match(command, "") THEN
help;
ELSIF Strings.Match(command, "install") THEN
PackageFileParser.install();
END;
END opium.