Skip to content

Commit

Permalink
Just log when Clink version is too low.
Browse files Browse the repository at this point in the history
Log that the argmatcher won't work, instead of printing an error.
  • Loading branch information
chrisant996 committed Nov 18, 2023
1 parent befc77e commit 3c78e5a
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion completions/attrib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--------------------------------------------------------------------------------
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("attrib.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("attrib.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/colortool.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("colortool.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("colortool.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/curl.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("curl.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("curl.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/grep.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("grep.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("grep.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/gsudo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_chaincommand then
print("gsudo.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("gsudo.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/less.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("less.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("less.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
7 changes: 3 additions & 4 deletions completions/make.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
-- set %INCLUDE_PATHLIKE_MAKEFILE_TARGETS% to any non-empty string.

local clink_version = require('clink_version')

require('arghelper')

if not clink_version.supports_argmatcher_delayinit then
print("make.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("make.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

require('arghelper')

-- Table of special targets to always ignore.
local special_targets = {
['.PHONY'] = true,
Expand Down
2 changes: 1 addition & 1 deletion completions/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end

local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("premake5.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("premake5.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/robocopy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("robocopy.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("robocopy.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/sed.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("sed.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("sed.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/sudo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_chaincommand then
print("sudo.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("sudo.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down
2 changes: 1 addition & 1 deletion completions/xcopy.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local clink_version = require('clink_version')
if not clink_version.supports_argmatcher_delayinit then
print("xcopy.lua argmatcher requires a newer version of Clink; please upgrade.")
log.info("xcopy.lua argmatcher requires a newer version of Clink; please upgrade.")
return
end

Expand Down

0 comments on commit 3c78e5a

Please sign in to comment.