mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 10:37:26 -07:00
Issue 1393 quiet flag
Issue https://github.com/koalaman/shellcheck/issues/1393 Provide '-q' and '--quiet' flags that suppress all normal output, but keep the return status, similar to 'grep -q'.
This commit is contained in:
parent
ec6f9e4d49
commit
a89403f09b
4 changed files with 47 additions and 1 deletions
|
@ -27,6 +27,7 @@ import ShellCheck.Formatter.Format
|
|||
import qualified ShellCheck.Formatter.GCC
|
||||
import qualified ShellCheck.Formatter.JSON
|
||||
import qualified ShellCheck.Formatter.TTY
|
||||
import qualified ShellCheck.Formatter.Quiet
|
||||
|
||||
import Control.Exception
|
||||
import Control.Monad
|
||||
|
@ -125,7 +126,8 @@ formats options = Map.fromList [
|
|||
("checkstyle", ShellCheck.Formatter.CheckStyle.format),
|
||||
("gcc", ShellCheck.Formatter.GCC.format),
|
||||
("json", ShellCheck.Formatter.JSON.format),
|
||||
("tty", ShellCheck.Formatter.TTY.format options)
|
||||
("tty", ShellCheck.Formatter.TTY.format options),
|
||||
("quiet", ShellCheck.Formatter.Quiet.format options)
|
||||
]
|
||||
|
||||
formatList = intercalate ", " names
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue