Skip to content

Commit

Permalink
Added missing command
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgurance committed Jul 5, 2024
1 parent 921fee4 commit c5c9a60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ISM/CommandLine.cr
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,15 @@ module ISM
printErrorNotification(ISM::Default::CommandLine::ErrorDeleteDirectoryText+directory, error)
end

def notifyOfMakeLinkUnknowTypeError(path : String, targetPath : String, linkType : Symbol, error = nil)
printErrorNotification( ISM::Default::CommandLine::ErrorMakeLinkUnknowTypeText1 +
path +
ISM::Default::CommandLine::ErrorMakeLinkUnknowTypeText2 +
targetPath +
ISM::Default::CommandLine::ErrorMakeLinkUnknowTypeText3 +
linkType.to_s, error)
end

def notifyOfRunSystemCommandError(arguments : String, path = String.new, environment = Hash(String, String).new, environmentFilePath = String.new, error = nil)
printErrorNotification( ISM::Default::CommandLine::ErrorRunSystemCommandText1 +
arguments +
Expand Down
3 changes: 3 additions & 0 deletions ISM/Default/CommandLine.cr
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ module ISM
ErrorMoveFileText2 = " to "
ErrorMakeDirectoryText = "Failed to make directory "
ErrorDeleteDirectoryText = "Failed to delete directory "
ErrorMakeLinkUnknowTypeText1 = "Failed to make symbolic link from "
ErrorMakeLinkUnknowTypeText2 = " to "
ErrorMakeLinkUnknowTypeText3 = ". Unknow link type: "
ErrorRunSystemCommandText1 = "Failed to run "
ErrorRunSystemCommandText2 = " in "
ErrorRunSystemCommandText3 = " with given environment "
Expand Down

0 comments on commit c5c9a60

Please sign in to comment.