Skip to content

Commit

Permalink
Changed execute function parameter to keyword in CatFileTool
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvikli committed Jan 17, 2025
1 parent cfe4b3c commit 1d9049d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/CatFileTool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ or if you don't need immediat result from it then you can use it without $STOP_S
"""
stop_sequence(cmd::Type{CatFileTool}) = STOP_SEQUENCE

execute(cmd::CatFileTool, no_confirm::Bool=false) = let
execute(cmd::CatFileTool; no_confirm::Bool=false) = let
path = normpath(joinpath(cmd.root_path, cmd.file_path))
# TODO: use STANDARD file print format! So don't redefine this again ang again... Also language detection to the tags would be nice to have
isfile(path) ? file_format(path, read(path, String)) : "cat: $(path): No such file or directory"
Expand Down

0 comments on commit 1d9049d

Please sign in to comment.