-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add ScalaDoc comments and README See merge request dobesmic/bi-oop-ascii-art!11
- Loading branch information
Showing
63 changed files
with
957 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
package App | ||
|
||
import scala.util.Try | ||
import scala.util.{Failure, Success, Try} | ||
|
||
/** | ||
* ASCII art processor. | ||
* | ||
*/ | ||
trait ASCIIArtProcessor { | ||
|
||
/** | ||
* Run the ASCII Art process. | ||
* | ||
* @return [[Success]] if process was successful or [[Failure]] | ||
*/ | ||
def run(): Try[Unit] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,5 +84,3 @@ object Main extends App { | |
case Failure(exception) => throw exception | ||
} | ||
} | ||
|
||
//TODO: - comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/scala/App/commandline/parsers/handlers/CommandParseHandler.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/scala/App/commandline/parsers/handlers/ParseHandler.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
package App.commandline.parsers.handlers | ||
|
||
/** | ||
* Parse handler. | ||
* | ||
* @tparam T type of the parsed item | ||
*/ | ||
trait ParseHandler[T] { | ||
|
||
/** | ||
* Attempt to parse the item. | ||
* | ||
* Only the arguments at the beginning are considered, if parsing | ||
* does not succeed there, [[None]] is returned. | ||
* Else, the remaining arguments (with the already parsed arguments removed) | ||
* and the parsed item are returned. | ||
* | ||
* @param args sequence arguments to parse | ||
* @return [[Some]] with the remaining arguments and the parsed item or [[None]] | ||
*/ | ||
def handle(args: Seq[String]): Option[(Seq[String], T)] | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/scala/App/commandline/parsers/handlers/PropertyParseHandler.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/scala/App/commandline/parsers/parametrizers/Parametrizer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.