Skip to content

Commit cf9d54b

Browse files
committed
Adding --ignore-constraints to paket outdated - fixes #308
1 parent ceffcba commit cf9d54b

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎RELEASE_NOTES.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 0.12.2 - 07.11.2014
2+
* Adding --ignore-constraints to `paket outdated` - https://github.com/fsprojects/Paket/issues/308
3+
14
#### 0.12.1 - 07.11.2014
25
* BUGFIX: `paket update nuget [PACKAGENAME]` should use the same update strategy as `paket add` - https://github.com/fsprojects/Paket/issues/330
36

‎docs/content/paket-outdated.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
Lists all dependencies that have newer versions available.
44

55
[lang=batchfile]
6-
$ paket outdated [--pre] [--strict]
6+
$ paket outdated [--pre] [--ignore-constraints]
77

88
Options:
99

1010
`--pre`: Includes prereleases.
1111

12-
`--strict`: Keeps the version requirement as in the [`paket.dependencies`](dependencies-file.html).
12+
`--ignore-constraints`: Ignores the version requirement as in the [`paket.dependencies`](dependencies-file.html).
1313

1414
## Sample
1515

‎src/Paket/Program.fs‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type CLIArguments =
4444
| [<CustomCommandLine("version")>] Version of string
4545
| [<Rest>]References_Files of string
4646
| No_Install
47-
| Strict
47+
| Ignore_Constraints
4848
| [<AltCommandLine("--pre")>] Include_Prereleases
4949
| No_Auto_Restore
5050
with
@@ -66,7 +66,7 @@ with
6666
| Interactive -> "interactive process."
6767
| Hard -> "overwrites manual package references."
6868
| No_Install -> "omits install --hard after convert-from-nuget."
69-
| Strict -> "keeps all version requirements when searching for outdated packages."
69+
| Ignore_Constraints -> "ignores the version requirements when searching for outdated packages."
7070
| Include_Prereleases -> "includes prereleases when searching for outdated packages."
7171
| No_Auto_Restore -> "omits init-auto-restore after convert-from-nuget."
7272
| Nuget _ -> "allows to specify a nuget package."
@@ -105,7 +105,6 @@ try
105105
let hard = results.Contains <@ CLIArguments.Hard @>
106106
let noInstall = results.Contains <@ CLIArguments.No_Install @>
107107
let noAutoRestore = results.Contains <@ CLIArguments.No_Auto_Restore @>
108-
let strict = results.Contains <@ CLIArguments.Strict @>
109108
let includePrereleases = results.Contains <@ CLIArguments.Include_Prereleases @>
110109

111110
match command with
@@ -130,7 +129,9 @@ try
130129
UpdateProcess.UpdatePackage(packageName,version,force,hard)
131130
| _ -> UpdateProcess.Update(true,force,hard)
132131

133-
| Command.Outdated -> FindOutdated.ListOutdated(strict,includePrereleases)
132+
| Command.Outdated ->
133+
let strict = results.Contains <@ CLIArguments.Ignore_Constraints @> |> not
134+
FindOutdated.ListOutdated(strict,includePrereleases)
134135
| Command.InitAutoRestore -> VSIntegration.InitAutoRestore()
135136
| Command.ConvertFromNuget -> NuGetConvert.ConvertFromNuget(force,noInstall |> not,noAutoRestore |> not)
136137
| Command.Simplify -> Simplifier.Simplify(interactive)

0 commit comments

Comments
 (0)