Skip to content

Commit

Permalink
Fix naming of this type to reflect the api abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvandenbreemen committed Nov 20, 2023
1 parent 4a9bd37 commit ee95ffd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/vandenbreemen/ktt/macro/AboutMacro.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal class AboutMacro(): Macro {
override val description: String?
get() = "Displays the standard about and ascii art for the wiki"

override fun execute(args: Map<String, String>, systemAccessInteractor: SystemAccess): String {
override fun execute(args: Map<String, String>, systemAccess: SystemAccess): String {

val about = javaClass.getResource("/about.dat").readText()

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/vandenbreemen/ktt/macro/Macro.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ interface Macro {
/**
* Execute with the parameters, returning content as a string. Content should be in markdown
*/
fun execute(args: Map<String, String>, systemAccessInteractor: SystemAccess): String
fun execute(args: Map<String, String>, systemAccess: SystemAccess): String
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class MacroRegistryMacro(private val macroRegistry: MacroRegistry): Mac
override val description: String?
get() = "Lists all macros currently available in this wiki"

override fun execute(args: Map<String, String>, systemAccessInteractor: SystemAccess): String {
override fun execute(args: Map<String, String>, systemAccess: SystemAccess): String {

return """
---------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class MacrosPluginTest {
override val description: String?
get() = "Unit testing macro"

override fun execute(args: Map<String, String>, systemAccessInteractor: SystemAccess): String {
override fun execute(args: Map<String, String>, systemAccess: SystemAccess): String {
val message = args["message"] ?: "(missing message)"
val additional = args["additional"]
if(additional != null) {
Expand Down

0 comments on commit ee95ffd

Please sign in to comment.