Skip to content
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
865 commits
Select commit Hold shift + click to select a range
2bfe7ea
Made changes to link user
Kair0s3 Nov 1, 2021
547a96a
Merge pull request #274 from Kair0s3/TianBoon-ShowCommand
Kair0s3 Nov 1, 2021
6b4a7bb
Additional handling for the listing of files.
Kair0s3 Nov 1, 2021
9cb4652
Changed checking to instead be using endswith function.
Kair0s3 Nov 1, 2021
196f086
Update recipe deselect description
arraysius Nov 1, 2021
8c244e4
Merge remote-tracking branch 'upstream/master' into aloysius-RecipeDe…
arraysius Nov 1, 2021
4577d4c
Update text-ui-test expected
arraysius Nov 1, 2021
e501dab
Changes to module list section
Kair0s3 Nov 1, 2021
ad6cebf
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-3/tp…
Kair0s3 Nov 1, 2021
d271266
Merge remote-tracking branch 'upstream/master' into aloysius-RecipeDe…
arraysius Nov 1, 2021
4abe298
Changes to instead print error failed to laod files into one line.
Kair0s3 Nov 1, 2021
f3003f5
Merge pull request #251 from Kair0s3/TianBoon-BugFix#1
Kair0s3 Nov 1, 2021
516e04a
Break complex line down
arraysius Nov 1, 2021
37fba4b
Merge remote-tracking branch 'upstream/master' into aloysius-RecipeDe…
arraysius Nov 1, 2021
ed973c8
Merge pull request #275 from arraysius/aloysius-RecipeDeselectCommand
arraysius Nov 1, 2021
33428d9
Add recipeName clarification
sean-phang Nov 2, 2021
7c8c031
Merge pull request #276 from SeenFang/Sean-FixUGRecipeNameClarity
sean-phang Nov 2, 2021
9ece200
Add explanation on separators in data
rizemon Nov 2, 2021
d519028
Merge pull request #277 from rizemon/jiaLe-UpdateUGuide
rizemon Nov 2, 2021
3a037a1
Fix command argument issues
sean-phang Nov 2, 2021
1cca6ac
Update module description to follow UG
rizemon Nov 2, 2021
0e95877
Update module list message in text-ui
rizemon Nov 2, 2021
fe8c601
Merge pull request #279 from rizemon/jiaLe-UpdateModuleDescription
rizemon Nov 3, 2021
4a367d5
Merge pull request #278 from SeenFang/Sean-FixIssues
sean-phang Nov 3, 2021
e635a8d
Abstracted some parts of the decodex logic and simplfied the while lo…
Kair0s3 Nov 3, 2021
23efcf4
Changes to class member's Javadocs to be single line instead.
Kair0s3 Nov 3, 2021
3b54d6b
Refactoring to replace constant javadocs to be single line instead. A…
Kair0s3 Nov 3, 2021
57b4fb5
Replace multiline variable javadocs to single line.
Kair0s3 Nov 3, 2021
c526e30
PPP Draft 1
Kair0s3 Nov 3, 2021
9dccb64
Fixing of indents
Kair0s3 Nov 3, 2021
4c1caa7
Add PPP
rizemon Nov 3, 2021
cc1acaf
Updated PPP (Left with 25%)
Kair0s3 Nov 3, 2021
c6a76d1
Update AboutUs links to PPP
rizemon Nov 3, 2021
48afc8b
Updated JavaDocs and additional line of javadoc for variable.
Kair0s3 Nov 3, 2021
2d11ae3
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-3/tp…
Kair0s3 Nov 3, 2021
90e416e
Added author tags for base64 decoder and encoder.
Kair0s3 Nov 3, 2021
9f38871
Refactor RotEncoder
rizemon Nov 3, 2021
05e4c57
Some additional refactoring and simplifying some of the codes in `Par…
Kair0s3 Nov 3, 2021
91a4bf0
Reverted the change for the while to a simpler fix as per suggestion
Kair0s3 Nov 3, 2021
cf88a49
Remove dead getDescription of Module.java
rizemon Nov 3, 2021
cc3ed14
Made suggested changes #2
Kair0s3 Nov 3, 2021
2424d45
Reverted changes due to realization of a stack overflow error, since …
Kair0s3 Nov 3, 2021
4553dca
Some changes to the phrasing and most importantly
Kair0s3 Nov 3, 2021
57d10d1
Last change of the day for compressing the method signature (the thro…
Kair0s3 Nov 3, 2021
13ea71f
Removed the additional indent.
Kair0s3 Nov 3, 2021
5b831e5
Simplify HexDecode
sean-phang Nov 4, 2021
a6e6c7d
Merge pull request #282 from rizemon/jiaLe-RemoveDeadCode
arraysius Nov 4, 2021
c503c1d
Add author tags
arraysius Nov 4, 2021
c006a31
Add author tags for `Module.java`
arraysius Nov 4, 2021
77afa21
Merge pull request #280 from Kair0s3/TianBoon-Refactor_Javadocs
Kair0s3 Nov 4, 2021
07ab3ee
Some bug fixes to ensure that if any additional parameters given to s…
Kair0s3 Nov 4, 2021
ccec072
Add PPP
sean-phang Nov 4, 2021
9a3d77c
Merge pull request #287 from SeenFang/Sean-AddPPP
sean-phang Nov 4, 2021
d59e7aa
Fix style
sean-phang Nov 4, 2021
343331b
Add PPP
arraysius Nov 4, 2021
d54c420
Merge pull request #289 from arraysius/aloysius-AddPPP
arraysius Nov 4, 2021
e85b55d
Fix minor typos
arraysius Nov 4, 2021
55320b0
Merge pull request #285 from arraysius/aloysius-AuthorTag
arraysius Nov 4, 2021
b419be0
Merge pull request #286 from Kair0s3/TianBoon-ShowBugFix
Kair0s3 Nov 4, 2021
a9ba54b
Merge pull request #281 from rizemon/jiaLe-UpdateRotEncoder
rizemon Nov 4, 2021
fd3bd7c
Added changes to PPP
Kair0s3 Nov 4, 2021
5630476
Removed an additional line
Kair0s3 Nov 4, 2021
c6f891b
Changes to reduce lines for printing
Kair0s3 Nov 4, 2021
846c1df
Merge pull request #290 from Kair0s3/TianBoon-PPPDraftAgain
Kair0s3 Nov 4, 2021
a825543
Merge pull request #288 from SeenFang/Sean-SimplifyHexDecode
sean-phang Nov 4, 2021
1844587
Change File Structure
sean-phang Nov 5, 2021
81f6e4a
Merge pull request #297 from SeenFang/Sean-ChangeFileStructure2
sean-phang Nov 5, 2021
258a04d
Move command classes
rizemon Nov 5, 2021
1abb357
Merge pull request #298 from rizemon/jiaLe-MoveCommands
rizemon Nov 5, 2021
dda37a8
Move show command
Kair0s3 Nov 5, 2021
c35184f
Merge pull request #300 from Kair0s3/TianBoon-MoveCommand4.0
Kair0s3 Nov 5, 2021
f6edd5b
Move commands
arraysius Nov 5, 2021
e18826d
Merge pull request #301 from arraysius/aloysius-MoveCommands
arraysius Nov 5, 2021
8cc30c3
Moved Parser
Kair0s3 Nov 5, 2021
cf3cfba
Merge pull request #302 from Kair0s3/TianBoon-MoveParser
Kair0s3 Nov 5, 2021
89ecf65
Move `RecipeCommandParser`
arraysius Nov 5, 2021
7c8515b
Merge pull request #303 from arraysius/aloysius-MoveRecipeCommandParser
arraysius Nov 5, 2021
9772cf3
Fix import order
rizemon Nov 5, 2021
2ab0012
Reorder imports
arraysius Nov 5, 2021
50bff80
Merge pull request #304 from rizemon/jiaLe-FixImportOrder
rizemon Nov 5, 2021
8bc174a
Modified import orders.
Kair0s3 Nov 5, 2021
cfe171f
Reorder Imports
sean-phang Nov 5, 2021
484ee0c
Merge pull request #305 from arraysius/aloysius-ReorderImports
arraysius Nov 5, 2021
989a9cb
Fix indents
sean-phang Nov 5, 2021
e19fe1a
Reorder imports 2
sean-phang Nov 5, 2021
7d66bbe
Merge pull request #306 from Kair0s3/TianBoon-FixImport3.0
Kair0s3 Nov 5, 2021
a00167a
Merge pull request #307 from SeenFang/Sean-ReorderImports3
sean-phang Nov 5, 2021
9ba3dfc
Added link for the available modules keyword, quick start changes, an…
Kair0s3 Nov 5, 2021
b5d51c0
Added show and help command documentation (left the image to insert) …
Kair0s3 Nov 5, 2021
34e0e44
added missing `help`
Kair0s3 Nov 5, 2021
5f3d5be
Added link
Kair0s3 Nov 5, 2021
3d8dc3d
fix some broken stuff
Kair0s3 Nov 5, 2021
d9c14c3
Merge pull request #308 from Kair0s3/TianBoon-UGChanges
Kair0s3 Nov 5, 2021
eb0d5bf
Update user guide
rizemon Nov 5, 2021
eacf449
Merge pull request #309 from rizemon/jiaLe-UpdateUserGuide1
rizemon Nov 5, 2021
0179c6e
Update user guide again
rizemon Nov 5, 2021
e742758
Merge pull request #310 from rizemon/jiaLe-UpdateUserGuide1
rizemon Nov 5, 2021
e769781
Update user guide
rizemon Nov 5, 2021
d9a7cd2
Merge pull request #311 from rizemon/jiaLe-UpdateUserGuide1
rizemon Nov 5, 2021
9270a4e
Add changes to exception messages to be more specific.
Kair0s3 Nov 6, 2021
f34c37a
Merge pull request #312 from Kair0s3/TianBoon-ErrorMessagesChanges2.0
Kair0s3 Nov 6, 2021
07715ee
Fix missing error header
sean-phang Nov 6, 2021
9bbb3e3
quick fix
sean-phang Nov 6, 2021
307a10d
text-ui
sean-phang Nov 6, 2021
335a510
Merge pull request #314 from SeenFang/Sean-FixMissingHeader2
sean-phang Nov 6, 2021
a6993be
Changes to the invalid directory access message to be more specific.
Kair0s3 Nov 6, 2021
9f8d9de
Merge pull request #315 from Kair0s3/TianBoon-ErrorMessagesChanges2.0
Kair0s3 Nov 6, 2021
f72ecaa
Add terminology hyperlinks
arraysius Nov 6, 2021
4fddf64
Fix grammar
arraysius Nov 6, 2021
9eeb3ab
Add hyperlinks for basic commands
arraysius Nov 6, 2021
7b54ce8
Update arraysius.md
arraysius Nov 6, 2021
2d4a2d0
Added new updated class diagrams for ug
Kair0s3 Nov 6, 2021
282648b
Updated changes to remove code blocks from Decodex keyword to make it…
Kair0s3 Nov 6, 2021
4e2bb52
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-3/tp…
Kair0s3 Nov 6, 2021
efdebd3
Updated {argument} to {moduleArgument} for the sample correct syntax …
Kair0s3 Nov 6, 2021
c57fbaa
Move quickstart game
sean-phang Nov 7, 2021
2d6d59a
Merge pull request #318 from SeenFang/Sean-UpdateUG
sean-phang Nov 7, 2021
9f15bf2
Added storage test to have perform test on only the test recipe and e…
Kair0s3 Nov 7, 2021
44b5b73
Removed the additonal note keywords.
Kair0s3 Nov 7, 2021
6a5eba3
no message
Kair0s3 Nov 7, 2021
fe8c506
Update architecture.png
arraysius Nov 7, 2021
66aa95a
Small change to the variable name
Kair0s3 Nov 7, 2021
7d7a79a
Added ShowCommandSequence Diagram
Kair0s3 Nov 7, 2021
50e118b
Update images
rizemon Nov 7, 2021
248ba4f
Added HelpCommandSequence Diagram
Kair0s3 Nov 7, 2021
08a75e2
Merge branch 'master' into jiaLe-UpdateSequenceDiagrams
rizemon Nov 7, 2021
a4dcb76
Update seq diagrams
rizemon Nov 7, 2021
7194d2a
Move the deactivation into within the alt box for listCommandSequeunce
Kair0s3 Nov 7, 2021
93616c0
Revert "Move the deactivation into within the alt box for listCommand…
Kair0s3 Nov 7, 2021
4d51596
Merge pull request #320 from rizemon/jiaLe-UpdateSequenceDiagrams
rizemon Nov 7, 2021
43028b8
Merge pull request #321 from Kair0s3/TianBoon-UpdatedClassDiagram
Kair0s3 Nov 7, 2021
a085f50
1. Added Help and Show Command seq diagrams and their descriptions
Kair0s3 Nov 7, 2021
39ba2a2
1. Replaced the 2 exodia class diagrams (Module and Commands)
Kair0s3 Nov 7, 2021
74fb053
Update DG
rizemon Nov 7, 2021
33c9720
Merge branch 'master' into jiaLe-UpdateSequenceDiagrams
rizemon Nov 7, 2021
972883a
Update Decodex seq diagrams
rizemon Nov 7, 2021
5918cc1
Merge pull request #322 from rizemon/jiaLe-UpdateSequenceDiagrams
rizemon Nov 7, 2021
9083c3c
1. Update ToC for Appendix F and 2 commands (help and show)
Kair0s3 Nov 7, 2021
2f9c34b
Together with the previous - forgot to drag it to staged.
Kair0s3 Nov 7, 2021
fcc1eae
Merge pull request #316 from arraysius/aloysius-HyperlinkTerms
arraysius Nov 7, 2021
d63417d
Merge pull request #323 from Kair0s3/TianBoon-DGChangesV2.1
Kair0s3 Nov 7, 2021
f1a0154
Merge pull request #317 from Kair0s3/TianBoon-AdditionalChangesToUG
Kair0s3 Nov 7, 2021
635696c
Update test to use @BeforeEach
rizemon Nov 7, 2021
458b505
Changes from prefix to suffix to match the actual meaning of the .txt…
Kair0s3 Nov 7, 2021
122a993
Missing `|` after the row
Kair0s3 Nov 7, 2021
064e2c8
Changed modifier for one of the supposed method in storage to be priv…
Kair0s3 Nov 7, 2021
c054c3a
Added some additional JUnit test for Parser and BeforeEach methods fo…
Kair0s3 Nov 7, 2021
dab4076
Merge pull request #324 from rizemon/jiaLe-ImproveTestQuality
rizemon Nov 7, 2021
5062f1e
Merge pull request #325 from Kair0s3/TianBoon-CodeChangesAndSomeTest
Kair0s3 Nov 7, 2021
a6ad2f6
Add page break
arraysius Nov 7, 2021
5113902
Updated @me PPP
Kair0s3 Nov 7, 2021
12b1e9d
Changed regex to handle tab.
Kair0s3 Nov 7, 2021
9f033d6
Replaced the * with XYZ.
Kair0s3 Nov 7, 2021
97835f8
Partial Update for DG V2.1
arraysius Nov 7, 2021
d73ee0e
Fix typo in arraysius.md
arraysius Nov 7, 2021
af4e44b
Small update
sean-phang Nov 7, 2021
64ee8ef
Merge pull request #329 from SeenFang/Sean-SmallUpdate
sean-phang Nov 7, 2021
595514e
Merge pull request #328 from arraysius/aloysius-UpdateDGV2.1
arraysius Nov 7, 2021
ebd5a3f
A few changes
sean-phang Nov 7, 2021
6f4642b
add an S
sean-phang Nov 7, 2021
231a7de
Revert "Replaced the * with XYZ."
Kair0s3 Nov 7, 2021
5f2fb8b
Changes to DG line 180, 181, 182 for the respective XYZ commands
Kair0s3 Nov 7, 2021
68a3c66
other stuff
sean-phang Nov 7, 2021
9a3a0f7
Remove duplicate
sean-phang Nov 7, 2021
f97f180
Merge branch 'master' into Sean-English
sean-phang Nov 7, 2021
94456de
Reverted change for the additional \t check and replaced line 95 to s…
Kair0s3 Nov 7, 2021
75c5bc2
Merge pull request #326 from Kair0s3/TianBoon-ParserTabBugFix
Kair0s3 Nov 7, 2021
d04f275
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-3/tp…
Kair0s3 Nov 7, 2021
c4b7373
Attempt to fix the pandora box storage test.
Kair0s3 Nov 7, 2021
6b3fab2
Update UG section on rizemon.md
rizemon Nov 7, 2021
f7d7eed
Remove S
sean-phang Nov 7, 2021
36cbe7f
Update rizemon.md
rizemon Nov 7, 2021
22fd543
Merge remote-tracking branch 'origin/Sean-English' into Sean-English
sean-phang Nov 7, 2021
cd7daad
Fixed the typo for the RecipeXYZCommand
Kair0s3 Nov 7, 2021
6627551
Update rizemon.md with DG contributions
rizemon Nov 7, 2021
a04a559
Merge pull request #327 from Kair0s3/TianBoon-DGChanges#3
Kair0s3 Nov 7, 2021
005d35c
Merge pull request #330 from SeenFang/Sean-English
sean-phang Nov 7, 2021
0081d0d
Update Recipe Component
sean-phang Nov 7, 2021
45163bf
Merge pull request #341 from SeenFang/Sean-UpdateDG
sean-phang Nov 7, 2021
5d3f6a3
Updated Help command sequence diagram image and puml file.
Kair0s3 Nov 7, 2021
7f27f30
Updated new StorageClass puml and image.
Kair0s3 Nov 7, 2021
c6a735c
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-3/tp…
Kair0s3 Nov 7, 2021
d7688a0
Changed module class diagram to be XYZModule and the explanation as w…
Kair0s3 Nov 7, 2021
fe8e11b
Added a more accurate data component partial diagram
Kair0s3 Nov 7, 2021
7b4b5b0
Added style to the 2 headers in module #336, #337
Kair0s3 Nov 7, 2021
3a4ac61
Updated the XYZ Module changes.
Kair0s3 Nov 7, 2021
af3b8ac
Fixed the storage class being too small (on my own repo side)
Kair0s3 Nov 7, 2021
689c9f3
Updated StorageClass png again
Kair0s3 Nov 7, 2021
d14baf1
Updated the new ShowCommand diagram to have no toString()
Kair0s3 Nov 7, 2021
ba7376a
Not sure how this * got here, but changed to XYZ
Kair0s3 Nov 7, 2021
cb0b2be
Updated HelpCommandSequence diagram to standardize using the method's…
Kair0s3 Nov 7, 2021
c7269af
For #352
Kair0s3 Nov 7, 2021
9c77a83
Update DG
rizemon Nov 7, 2021
ae4ea45
Remove hyperlinks for modules
rizemon Nov 7, 2021
41b56bb
Updated terminology table as of UG's terminology for the encryption a…
Kair0s3 Nov 7, 2021
a755a8a
Updated the Ui class.
Kair0s3 Nov 7, 2021
842059d
Moved remaining instructions for testing over to DG
Kair0s3 Nov 7, 2021
6800b30
Update DG
rizemon Nov 7, 2021
28de6b7
Broken numbering fix (although this requires the code blocks to be in…
Kair0s3 Nov 7, 2021
980fee1
Merge pull request #361 from rizemon/jiaLe-ProofRead
rizemon Nov 8, 2021
388997a
Add newline
rizemon Nov 8, 2021
e5df730
Merge pull request #363 from rizemon/jiaLe-ProofReadAgain
rizemon Nov 8, 2021
4d1c09c
Added the EOF line as reviewed
Kair0s3 Nov 8, 2021
7feedfd
Changes of "Converting" to "Conversion of" - Needs to be changed on U…
Kair0s3 Nov 8, 2021
d759dba
Updated to remove the Decodex from the Partial diagram
Kair0s3 Nov 8, 2021
afea4b3
Moved the input test examples into code block and changed the last ex…
Kair0s3 Nov 8, 2021
99dd91d
Changed gibberish to unintelligible.
Kair0s3 Nov 8, 2021
037e228
Testing to see if it works, cause locally the indented line seems to …
Kair0s3 Nov 8, 2021
ddec8ee
Added a additional line of bullet point for the test case type since,…
Kair0s3 Nov 8, 2021
ce8aa24
Merge pull request #319 from Kair0s3/TianBoon-TestCodes
Kair0s3 Nov 8, 2021
7d9487f
Adding in the additional indents to standardize
Kair0s3 Nov 8, 2021
bc86821
Fixed the addtional note information in input data portion
Kair0s3 Nov 8, 2021
a5a6f35
Made suggested changes for the rephrasing of the informational note
Kair0s3 Nov 8, 2021
4e0790b
Changes to remove the ugly images from the Appendix F
Kair0s3 Nov 8, 2021
a6eafd2
Merge pull request #360 from Kair0s3/TianBoon-DGChanges#4
Kair0s3 Nov 8, 2021
7199d12
Fix the missing link to Appendix F
Kair0s3 Nov 8, 2021
ee3d761
Update PR count
rizemon Nov 8, 2021
300596b
Move puml to diagrams
rizemon Nov 8, 2021
0a06f6d
Merge pull request #364 from rizemon/jiaLe-ReorderFiles
rizemon Nov 8, 2021
418d7cf
Change download link to latest
rizemon Nov 8, 2021
77286b1
Replace prefix with suffix
Kair0s3 Nov 8, 2021
ecfb998
Merge pull request #366 from Kair0s3/TianBoon-ReplacePrefixWithSuffix…
Kair0s3 Nov 8, 2021
6ef2817
Removed the additional loading method for Decodex in Ui component.
Kair0s3 Nov 8, 2021
c8d1848
Changed the terminology UG to DG keyword
Kair0s3 Nov 8, 2021
336ba10
Newline at EOF
Kair0s3 Nov 8, 2021
b1349a3
Merge pull request #370 from Kair0s3/TianBoon-FinalDaystination
Kair0s3 Nov 8, 2021
0d65640
Change list module argument t be optional
Kair0s3 Nov 8, 2021
32d0fe4
Update UG
rizemon Nov 8, 2021
3466b5c
Merge pull request #373 from Kair0s3/TianBoon-FinalDaystination
Kair0s3 Nov 8, 2021
06ae574
Add missing s
rizemon Nov 8, 2021
e1c61af
Merge pull request #374 from rizemon/jiaLe-UGBugs
rizemon Nov 8, 2021
9468515
Trigger github pages build
rizemon Nov 8, 2021
36be91b
Add page breaks to DG
arraysius Nov 8, 2021
0ca1859
Fix missing appendix header and update TOC
arraysius Nov 8, 2021
ba033e0
Fix long code blocks
arraysius Nov 8, 2021
6e78feb
Merge pull request #375 from arraysius/aloysius-DGPageBreak
arraysius Nov 8, 2021
ecfdb34
Update DG page breaks
arraysius Nov 8, 2021
80c2b8d
Add page breaks
sean-phang Nov 8, 2021
f113fbe
Update page breaks
sean-phang Nov 8, 2021
f9ec90d
Update UG page breaks
sean-phang Nov 8, 2021
3dadec1
Fix page break for arraysius.md
arraysius Nov 8, 2021
22532b4
Fix broken arraysius.md
arraysius Nov 8, 2021
4cda073
Fix extraneous arguments for `reset` command
arraysius Nov 8, 2021
e0eb44a
Add code block to `run()`
arraysius Nov 8, 2021
367d544
Move exception signatures one line up
arraysius Nov 8, 2021
2a15d18
Updated kair0s3 PPP
Kair0s3 Nov 8, 2021
85072e3
Fix inputting data examples
arraysius Nov 8, 2021
efcd394
Move exception signature in test up one line
arraysius Nov 8, 2021
844d7c7
Change "shows" to "indicate"
arraysius Nov 8, 2021
6d40107
Merge pull request #376 from arraysius/aloysius-FixResetCommandExtraA…
arraysius Nov 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ src/main/resources/docs/
*.iml
bin/

# Recipe files
/recipe/*

# Input, Output files
/input/*
/output/*

/text-ui-test/ACTUAL.txt
text-ui-test/EXPECTED-UNIX.TXT
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ test {
}

application {
mainClassName = "seedu.duke.Duke"
mainClassName = "decodex.Decodex"
}

shadowJar {
archiveBaseName = "duke"
archiveBaseName = "decodex"
archiveClassifier = null
}

Expand All @@ -43,4 +43,5 @@ checkstyle {

run{
standardInput = System.in
enableAssertions = true
}
9 changes: 4 additions & 5 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

Display | Name | Github Profile | Portfolio
--------|:----:|:--------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | John Doe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Joe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Ron John | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | John Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
<img src="https://avatars.githubusercontent.com/u/26685970?v=4" width="100"/> | Tan Jia Le | [Github](https://github.com/rizemon) | [Portfolio](docs/team/johndoe.md)
<img src="https://avatars.githubusercontent.com/u/16810847?v=4" width="100"/> | Aloysius Lee | [Github](https://github.com/arraysius) | [Portfolio](docs/team/johndoe.md)
<img src="https://media.discordapp.net/attachments/285692337357586432/892962858546114560/photo_2021-05-07_15-04-25.jpg?text=BreadDog" width="100"/> | Sean Phang | [Github](https://github.com/SeenFang) | [Portfolio](docs/team/johndoe.md)
<img src="https://avatars.githubusercontent.com/u/50107219?v=4" width="100"/> | Sim Tian Boon | [Github](https://github.com/Kair0s3) | [Portfolio](docs/team/johndoe.md)
566 changes: 546 additions & 20 deletions docs/DeveloperGuide.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem 'jemoji', '~> 0.12.0'
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Duke
# Decodex

{Give product intro here}
Decodex is a **Command Line Interface (CLI) application for Capture-The-Flag (CTF) players to quickly transform data from one format to another with extreme ease**. The intuitive interaction can help speed up a player's performance during CTFs and save time without having to manually code the tedious data transformations.

Useful links:
* [User Guide](UserGuide.md)
Expand Down
296 changes: 276 additions & 20 deletions docs/UserGuide.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
theme: jekyll-theme-cayman
gems:
- jemoji
Binary file added docs/images/carbon(1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/carbon(10).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/carbon(17).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/carbon(23).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/carbon(5).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/carbon(6).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/carbon(8).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/carbon(9).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/CommandClass1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/CommandClass2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/DataClass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/DataComponent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/DecodexInitSeq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/DecodexMainSeq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ExitCommand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/InputCommand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ListCommand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/LogicComponent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ModuleClass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ModuleComponent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ModuleManagerClass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ParserBasicSeq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ParserClass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/ParserRecipeSeq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/RecipeClass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dg/RecipeComponent.png
Binary file added docs/images/dg/RecipeDeleteCommand.png
Binary file added docs/images/dg/RecipeListCommand.png
Binary file added docs/images/dg/RecipeNewCommand.png
Binary file added docs/images/dg/RecipePopCommand.png
Binary file added docs/images/dg/RecipePushCommand.png
Binary file added docs/images/dg/RecipeResetCommand.png
Binary file added docs/images/dg/RecipeSelectCommand.png
Binary file added docs/images/dg/ResetCommand.png
Binary file added docs/images/dg/SelectCommand.png
Binary file added docs/images/dg/SelectCommandModule.png
Binary file added docs/images/dg/SelectCommandRecipe.png
Binary file added docs/images/dg/StorageClass.png
Binary file added docs/images/dg/UiClass.png
Binary file added docs/images/dg/architecture.png
Binary file added docs/images/recipeDelete.png
Binary file added docs/images/recipeList.png
Binary file added docs/images/recipeNew.png
Binary file added docs/images/recipePop.png
Binary file added docs/images/recipePush.png
Binary file added docs/images/recipeReset.png
Binary file added docs/images/recipeSelect.png
Binary file added docs/images/ug/ListCommandExample.png
Binary file added docs/images/ug/SelectCommandExample.png
Binary file added docs/images/ug/inputCommandExample.png
97 changes: 97 additions & 0 deletions src/main/java/decodex/Decodex.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
package decodex;

import decodex.commands.Command;
import decodex.commands.ExitCommand;
import decodex.data.DataManager;
import decodex.data.exception.CommandException;
import decodex.data.exception.DataManagerException;
import decodex.data.exception.ModuleException;
import decodex.data.exception.ModuleManagerException;
import decodex.data.exception.ParserException;
import decodex.data.exception.RecipeException;
import decodex.data.exception.RecipeManagerException;
import decodex.modules.ModuleManager;
import decodex.parser.Parser;
import decodex.recipes.RecipeManager;
import decodex.storage.Storage;
import decodex.ui.Ui;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class Decodex {

public static Logger logger = Logger.getLogger(Decodex.class.getName());


/**
* Necessary objects to be initialized for Decodex to work properly.
*/
private static DataManager dataManager;
private static ModuleManager moduleManager;
private static RecipeManager recipeManager;
private static Parser parser;
private static Ui ui;
private static Storage storage;

public Decodex() {
initDecodex();
}

/**
* Initializes the necessary Objects for Decodex.
*/
private void initDecodex() {
logger.setLevel(Level.INFO);
dataManager = new DataManager();
moduleManager = new ModuleManager();
parser = new Parser();
ui = new Ui();
storage = new Storage();
recipeManager = new RecipeManager(storage);
try {
loadSavedRecipes();
} catch (IOException err) {
ui.printError(err);
}

}

/**
* Decodex entry-point for the java.decodex.Decodex application.
*/
public static void main(String[] args) {
new Decodex().run();
}

public void run() {
ui.printGreeting();

Command command = null;

do {
String editingRecipeName;
try {
editingRecipeName = recipeManager.getEditingRecipe().getName();
} catch (RecipeManagerException e) {
editingRecipeName = null;
}
ui.printPromptHeader(editingRecipeName);
String userInput = ui.readInput();
logger.fine("User input: " + userInput);
try {
command = parser.parseCommand(userInput);
assert command != null : "Command should not be null";
command.run(dataManager, moduleManager, ui, recipeManager);
} catch (ParserException | CommandException | ModuleManagerException | DataManagerException
| ModuleException | RecipeException | RecipeManagerException | IOException err) {
ui.printError(err);
logger.fine(err.getMessage());
}
} while (!(command instanceof ExitCommand));
}

private void loadSavedRecipes() throws IOException {
storage.loadRecipesFromDirectory(moduleManager, recipeManager, ui);
}
}
26 changes: 26 additions & 0 deletions src/main/java/decodex/commands/Command.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package decodex.commands;

import decodex.data.DataManager;
import decodex.data.exception.CommandException;
import decodex.data.exception.DataManagerException;
import decodex.data.exception.ModuleException;
import decodex.data.exception.RecipeException;
import decodex.data.exception.RecipeManagerException;
import decodex.data.exception.ModuleManagerException;
import decodex.modules.ModuleManager;
import decodex.recipes.RecipeManager;
import decodex.ui.Ui;
import java.io.IOException;

/**
* Command serves as a foundation for other commands to be built upon.
*/
public abstract class Command {

public Command() {
}

public abstract void run(DataManager dataManager, ModuleManager moduleManager, Ui ui, RecipeManager recipeManager)
throws CommandException, ModuleManagerException, DataManagerException, ModuleException, RecipeException,
RecipeManagerException, IOException;
}
22 changes: 22 additions & 0 deletions src/main/java/decodex/commands/ExitCommand.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package decodex.commands;

import decodex.data.DataManager;
import decodex.modules.ModuleManager;
import decodex.recipes.RecipeManager;
import decodex.ui.Ui;

public class ExitCommand extends Command {

public static final String COMMAND_WORD = "exit";
public static final String COMMAND_HELP_MESSAGE = "Exit the program\n"
+ "Syntax: exit";

public ExitCommand() {
super();
}

@Override
public void run(DataManager dataManager, ModuleManager moduleManager, Ui ui, RecipeManager recipeManager) {
ui.printGoodbye();
}
}
48 changes: 48 additions & 0 deletions src/main/java/decodex/commands/HelpCommand.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package decodex.commands;

import decodex.commands.recipe.RecipeDeleteCommand;
import decodex.commands.recipe.RecipeListCommand;
import decodex.commands.recipe.RecipeNewCommand;
import decodex.commands.recipe.RecipePopCommand;
import decodex.commands.recipe.RecipePushCommand;
import decodex.commands.recipe.RecipeResetCommand;
import decodex.commands.recipe.RecipeSelectCommand;
import decodex.data.DataManager;
import decodex.modules.ModuleManager;
import decodex.recipes.RecipeManager;
import decodex.ui.Ui;

// @@author rizemon
public class HelpCommand extends Command {

public static final String COMMAND_WORD = "help";
public static final String COMMAND_HELP_MESSAGE = "Shows list of available commands\n"
+ "Syntax: help";

private static final String[] BASIC_COMMAND_HELP_MESSAGES = {
HelpCommand.COMMAND_HELP_MESSAGE,
ExitCommand.COMMAND_HELP_MESSAGE,
InputCommand.COMMAND_HELP_MESSAGE,
ListCommand.COMMAND_HELP_MESSAGE,
SelectCommand.COMMAND_HELP_MESSAGE
};

private static final String[] RECIPE_COMMAND_HELP_MESSAGES = {
RecipeNewCommand.COMMAND_HELP_MESSAGE,
RecipeListCommand.COMMAND_HELP_MESSAGE,
RecipeSelectCommand.COMMAND_HELP_MESSAGE,
RecipePushCommand.COMMAND_HELP_MESSAGE,
RecipePopCommand.COMMAND_HELP_MESSAGE,
RecipeResetCommand.COMMAND_HELP_MESSAGE,
RecipeDeleteCommand.COMMAND_HELP_MESSAGE,
};

public HelpCommand() {
super();
}

@Override
public void run(DataManager dataManager, ModuleManager moduleManager, Ui ui, RecipeManager recipeManager) {
ui.printCommandHelp(BASIC_COMMAND_HELP_MESSAGES, RECIPE_COMMAND_HELP_MESSAGES);
}
}
37 changes: 37 additions & 0 deletions src/main/java/decodex/commands/InputCommand.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package decodex.commands;

import decodex.data.Data;
import decodex.data.DataManager;
import decodex.data.exception.CommandException;
import decodex.modules.ModuleManager;
import decodex.recipes.RecipeManager;
import decodex.ui.Ui;
import decodex.ui.messages.ErrorMessages;

// @@author rizemon
public class InputCommand extends Command {

public static final String COMMAND_WORD = "input";
public static final String COMMAND_HELP_MESSAGE = "Input of data\n"
+ "Syntax: input <data>";

private final String dataString;

public InputCommand(String dataString) {
super();
this.dataString = dataString;
}

@Override
public void run(DataManager dataManager, ModuleManager moduleManager, Ui ui, RecipeManager recipeManager)
throws CommandException {
if (dataString.isEmpty()) {
throw new CommandException(ErrorMessages.MISSING_ARGUMENT);
}

Data userData = new Data(dataString);
dataManager.setOriginalData(userData);

ui.printInput(dataString);
}
}
95 changes: 95 additions & 0 deletions src/main/java/decodex/commands/ListCommand.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
package decodex.commands;

import decodex.data.DataManager;
import decodex.data.exception.CommandException;
import decodex.modules.ModuleManager;
import decodex.recipes.RecipeManager;
import decodex.ui.Ui;
import decodex.ui.messages.ErrorMessages;

public class ListCommand extends Command {

public static final String COMMAND_WORD = "list";
public static final String COMMAND_HELP_MESSAGE = "List available modules and recipes\n"
+ "Syntax: list {category}\n"
+ "Acceptable values of category: modules, recipes";

public static final String LIST_CATEGORY_MODULES = "modules";
public static final String LIST_CATEGORY_RECIPE = "recipes";
private static final int MODULE_NAME_INDEX = 0;
private static final int MODULE_DESCRIPTION_INDEX = 1;

private final String listCategory;

public ListCommand(String listCategory) {
super();
this.listCategory = listCategory;
}

@Override
public void run(DataManager dataManager, ModuleManager moduleManager, Ui ui, RecipeManager recipeManager)
throws CommandException {
boolean isPrintModuleList = listCategory == null || listCategory.equals(LIST_CATEGORY_MODULES);
boolean isPrintRecipeList = listCategory == null || listCategory.equals(LIST_CATEGORY_RECIPE);

if (isPrintModuleList) {
ui.printModuleList(getModuleList(moduleManager));
}
if (isPrintRecipeList) {
ui.printRecipeList(getRecipeList(recipeManager));
}
if (!isPrintModuleList && !isPrintRecipeList) {
throw new CommandException(ErrorMessages.INVALID_LIST_CATEGORY);
}
}

/**
* Prepares the list of supported modules.
*
* @param moduleManager The ModuleManager to retrieve supported modules.
* @return A formatted String of modules.
*/
private String getModuleList(ModuleManager moduleManager) {
String[][] modules = moduleManager.getModules();
assert modules.length > 0 : "Number of modules should be greater than 0";

StringBuilder moduleListString = new StringBuilder();
int maxNameWidth = 0;

// Find number of characters of the longest module name
for (String[] module : modules) {
String moduleName = module[MODULE_NAME_INDEX];
if (moduleName.length() > maxNameWidth) {
maxNameWidth = moduleName.length();
}
}

// Prepare and format list of modules
for (String[] module : modules) {
String moduleName = module[MODULE_NAME_INDEX];
String moduleDescription = module[MODULE_DESCRIPTION_INDEX];
moduleListString.append(String.format(" %-" + maxNameWidth + "s - %s\n", moduleName, moduleDescription));
}

return moduleListString.toString();
}

/**
* Prepares the list of available recipes.
*
* @param recipeManager The RecipeManager to retrieve available recipes.
* @return A formatted String of recipes.
*/
private String getRecipeList(RecipeManager recipeManager) {
String[] recipeNames = recipeManager.getRecipeNames();

StringBuilder recipeListString = new StringBuilder();

// Prepare and format list of recipes
for (String recipeName : recipeNames) {
recipeListString.append(String.format(" %s\n", recipeName));
}

return recipeListString.toString();
}
}
Loading