Skip to content

Commit c42fea1

Browse files
committed
[stack] Remove list-dependencies command
1 parent ab67824 commit c42fea1

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ Behavior changes:
131131
`recommend-stack-upgrade: false` to bypass this. See
132132
[#1681](https://github.com/commercialhaskell/stack/issues/1681).
133133

134+
* `stack list-dependencies` has been removed in favour of `stack ls dependencies`.
135+
134136
Other enhancements:
135137

136138
* Support MX Linux in get-stack.sh. Fixes

src/Stack/Options/DotParser.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dotOptsParser externalDefault =
5656
globalHints = switch (long "global-hints" <>
5757
help "Do not require an install GHC; instead, use a hints file for global packages")
5858

59-
-- | Parser for arguments to `stack list-dependencies`.
59+
-- | Parser for arguments to `stack ls dependencies`.
6060
listDepsOptsParser :: Parser ListDepsOpts
6161
listDepsOptsParser = ListDepsOpts
6262
<$> dotOptsParser True -- Default for --external is True.

src/Stack/Types/Config.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ data CompilerPaths = CompilerPaths
19641964
--
19651965
-- Note that this is not necessarily the same version as the one that stack
19661966
-- depends on as a library and which is displayed when running
1967-
-- @stack list-dependencies | grep Cabal@ in the stack project.
1967+
-- @stack ls dependencies | grep Cabal@ in the stack project.
19681968
, cpGlobalDB :: !(Path Abs Dir)
19691969
-- ^ Global package database
19701970
, cpGhcInfo :: !ByteString

src/main/Main.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,6 @@ commandLineHandler currentDir progName isInterpreter = complicatedOptions
352352
"Delete the project stack working directories (.stack-work by default). Shortcut for 'stack clean --full'"
353353
cleanCmd
354354
(cleanOptsParser Purge)
355-
addCommand' "list-dependencies"
356-
"List the dependencies"
357-
(listDependenciesCmd True)
358-
listDepsOptsParser
359355
addCommand' "query"
360356
"Query general build information (experimental)"
361357
queryCmd

0 commit comments

Comments
 (0)