Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 4147607

Browse files
Version 1.1 Complete
* Updated version string. * Simplified command function calls.
1 parent 7b0c681 commit 4147607

16 files changed

+36
-43
lines changed

changelog.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
# Changelog
22

3-
**./src/common/sub-interface/cmd-desc.js**
4-
* Added substring breaks to:
5-
* 'writeMapDesc' at "and performs..."
6-
* 'writeAbsoluteConversionDesc' at "and outputs..."
7-
* writeRelativeConversionDesc at "and outputs..."
3+
**maze.js**
4+
* Updated command script calls.
5+
* Updated version string to 1.1.0
86

97
---
108

11-
**./src/common/sub-interface/option-desc.js**
12-
* Split the text of these functions into substrings:
13-
* writeIgnoreParseDesc
14-
* writeOriginDesc
15-
* Added substring break to 'writeColourDesc' at "(default:"
16-
* Wrote new function 'writeSaveImageConvConfigDesc'
17-
* Used to assign global variable 'saveImageConvConfigDesc'
9+
**./src/%command%.js**
10+
* For each of these files, the public function name is now 'performCommand'

maze.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const gridToRelativeMain = require("./src/grid-to-relative-main");
1616
const imageToRelativeMain = require("./src/image-to-relative-main");
1717
const testExportMain = require("./src/test-export-main");
1818

19-
const versionText = "Version 1.0.0";
19+
const versionText = "Version 1.1.0";
2020
program.version(versionText);
2121

2222

@@ -29,7 +29,7 @@ program
2929
.option("-r --raw", optionDesc.exportRaw)
3030
.action(function (inpFilePath, inpFindMode, options)
3131
{
32-
mapAbsoluteMain.runAbsoluteMapping(inpFilePath, inpFindMode, options);
32+
mapAbsoluteMain.performCommand(inpFilePath, inpFindMode, options);
3333
});
3434

3535

@@ -42,7 +42,7 @@ program
4242
.option("-r --raw", optionDesc.exportRaw)
4343
.action(function (inpFilePath, inpFindMode, options)
4444
{
45-
mapGridMain.runGridMapping(inpFilePath, inpFindMode, options);
45+
mapGridMain.performCommand(inpFilePath, inpFindMode, options);
4646
});
4747

4848

@@ -55,7 +55,7 @@ program
5555
.option("-r --raw", optionDesc.exportRaw)
5656
.action(function (inpFilePath, inpFindMode, options)
5757
{
58-
mapRelativeMain.runRelativeMapping(inpFilePath, inpFindMode, options);
58+
mapRelativeMain.performCommand(inpFilePath, inpFindMode, options);
5959
});
6060

6161

@@ -76,7 +76,7 @@ program
7676
.option("-y --start-y <number>", optionDesc.imageOriginY)
7777
.action(function (inpImagePath, inpFindMode, options)
7878
{
79-
mapImageMain.runImageMapping(inpImagePath, inpFindMode, options);
79+
mapImageMain.performCommand(inpImagePath, inpFindMode, options);
8080
});
8181

8282

@@ -94,7 +94,7 @@ program
9494
.option("-y --start-y <number>", optionDesc.imageOriginY)
9595
.action(function (inpWritePath, options)
9696
{
97-
createImageConfigMain.runConfigCreate(inpWritePath, options);
97+
createImageConfigMain.performCommand(inpWritePath, options);
9898
});
9999

100100

@@ -105,7 +105,7 @@ program
105105
.description(cmdDesc.loadImageConfig)
106106
.action(function (inpFilePath)
107107
{
108-
readImageConfigMain.runConfigRead(inpFilePath);
108+
readImageConfigMain.performCommand(inpFilePath);
109109
});
110110

111111

@@ -117,7 +117,7 @@ program
117117
.option("-i --ignore-parse-errors", optionDesc.ignoreTextParse)
118118
.action(function (inpGridPath, inpWritePath, options)
119119
{
120-
gridToAbsoluteMain.runFileConversion(inpGridPath, inpWritePath, options);
120+
gridToAbsoluteMain.performCommand(inpGridPath, inpWritePath, options);
121121
});
122122

123123

@@ -138,7 +138,7 @@ program
138138
.option("-y --start-y <number>", optionDesc.imageOriginY)
139139
.action(function (inpImagePath, inpWritePath, options)
140140
{
141-
imageToAbsoluteMain.runFileConversion(inpImagePath, inpWritePath, options);
141+
imageToAbsoluteMain.performCommand(inpImagePath, inpWritePath, options);
142142
});
143143

144144

@@ -159,7 +159,7 @@ program
159159
.option("-y --start-y <number>", optionDesc.imageOriginY)
160160
.action(function (inpImagePath, inpWritePath, options)
161161
{
162-
imageToGridMain.runFileConversion(inpImagePath, inpWritePath, options);
162+
imageToGridMain.performCommand(inpImagePath, inpWritePath, options);
163163
});
164164

165165

@@ -171,7 +171,7 @@ program
171171
.option("-i --ignore-parse-errors", optionDesc.ignoreTextParse)
172172
.action(function (inpFilePath, inpWritePath, options)
173173
{
174-
absoluteToRelativeMain.runFileConversion(inpFilePath, inpWritePath, options);
174+
absoluteToRelativeMain.performCommand(inpFilePath, inpWritePath, options);
175175
});
176176

177177

@@ -183,7 +183,7 @@ program
183183
.option("-i --ignore-parse-errors", optionDesc.ignoreTextParse)
184184
.action(function (inpFilePath, inpWritePath, options)
185185
{
186-
gridToRelativeMain.runFileConversion(inpFilePath, inpWritePath, options);
186+
gridToRelativeMain.performCommand(inpFilePath, inpWritePath, options);
187187
});
188188

189189

@@ -204,7 +204,7 @@ program
204204
.option("-y --start-y <number>", optionDesc.imageOriginY)
205205
.action(function (inpImagePath, inpWritePath, options)
206206
{
207-
imageToRelativeMain.runFileConversion(inpImagePath, inpWritePath, options);
207+
imageToRelativeMain.performCommand(inpImagePath, inpWritePath, options);
208208
});
209209

210210
// test-export [pathfinding-mode]
@@ -216,7 +216,7 @@ program
216216
.option("-r --raw", optionDesc.exportRaw)
217217
.action(function (inpFindMode, options)
218218
{
219-
testExportMain.runTestExport(inpFindMode, options);
219+
testExportMain.performCommand(inpFindMode, options);
220220
});
221221

222222

src/absolute-to-relative-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ function executeGraphTasks(pArguments, parsedGraph)
9090

9191
module.exports =
9292
{
93-
runFileConversion: runAbsoluteToRelativeFileConversion
93+
performCommand: runAbsoluteToRelativeFileConversion
9494
};

src/create-image-config-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ function executePreperationTasks(optArgsObj, prepArgsObj)
5959

6060
module.exports =
6161
{
62-
runConfigCreate: runCreateImageConfig
62+
performCommand: runCreateImageConfig
6363
};

src/grid-to-absolute-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ function executeGraphTasks(pArguments, readGrid, parsedGraph)
108108

109109
module.exports =
110110
{
111-
runFileConversion: runGridToAbsoluteFileConversion
111+
performCommand: runGridToAbsoluteFileConversion
112112
};

src/grid-to-relative-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ function executeGraphTasks(pArguments, readGrid, parsedGraph)
112112

113113
module.exports =
114114
{
115-
runFileConversion: runGridToRelativeFileConversion
115+
performCommand: runGridToRelativeFileConversion
116116
};

src/image-to-absolute-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,5 @@ function executeGraphTasks(pArgs, readGrid, parsedGraph)
149149

150150
module.exports =
151151
{
152-
runFileConversion: runImageToAbsoluteFileConversion
152+
performCommand: runImageToAbsoluteFileConversion
153153
};

src/image-to-grid-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ function executeGridPreperationTasks(pArguments, rGridObject)
133133

134134
module.exports =
135135
{
136-
runFileConversion: runImageToGridFileConversion
136+
performCommand: runImageToGridFileConversion
137137
};

src/image-to-relative-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@ function executeGraphTasks(pArgs, readGrid, parsedGraph)
155155

156156
module.exports =
157157
{
158-
runFileConversion: runImageToRelativeFileConversion
158+
performCommand: runImageToRelativeFileConversion
159159
};

src/map-absolute-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ function executeOutputTasks(pArgs, pGraph, pPathResult)
103103

104104
module.exports =
105105
{
106-
runAbsoluteMapping: runAbsoluteFileMapping
106+
performCommand: runAbsoluteFileMapping
107107
};

0 commit comments

Comments
 (0)