Skip to content

Commit

Permalink
Changed command name
Browse files Browse the repository at this point in the history
  • Loading branch information
sarudak committed Oct 20, 2016
1 parent b2d2bf8 commit d3b011d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Paket.Core/PublicAPI.fs
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ type Dependencies(dependenciesFileName: string) =
member this.Restore(group: string option, files: string list): unit = this.Restore(false, group, files, false, false,false)

/// Restores the given paket.references files.
member this.Restore(force: bool, group: string option, files: string list, touchAffectedRefs: bool, ignoreChecks, failOnFailedChecks) : unit =
member this.Restore(force: bool, group: string option, files: string list, touchAffectedRefs: bool, ignoreChecks, failOnChecks) : unit =
Utils.RunInLockedAccessMode(
this.RootPath,
fun () ->
if touchAffectedRefs then
let packagesToTouch = RestoreProcess.FindPackagesNotExtractedYet(dependenciesFileName)
this.Process (FindReferences.TouchReferencesOfPackages packagesToTouch)
RestoreProcess.Restore(dependenciesFileName,force,Option.map GroupName group,files,ignoreChecks, failOnFailedChecks))
RestoreProcess.Restore(dependenciesFileName,force,Option.map GroupName group,files,ignoreChecks, failOnChecks))

/// Restores packages for all available paket.references files
/// (or all packages if onlyReferenced is false)
Expand Down
4 changes: 2 additions & 2 deletions src/Paket.Core/RestoreProcess.fs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ let internal computePackageHull groupName (lockFile : LockFile) (referencesFileN
|> Seq.map (fun p -> (snd p.Key)))
|> Seq.concat

let Restore(dependenciesFileName,force,group,referencesFileNames,ignoreChecks,failOnFailedChecks) =
let Restore(dependenciesFileName,force,group,referencesFileNames,ignoreChecks,failOnChecks) =
let lockFileName = DependenciesFile.FindLockfile dependenciesFileName
let localFileName = DependenciesFile.FindLocalfile dependenciesFileName
let root = lockFileName.Directory.FullName
Expand All @@ -139,7 +139,7 @@ let Restore(dependenciesFileName,force,group,referencesFileNames,ignoreChecks,fa
if not hasLocalFile && not ignoreChecks then
let hasAnyChanges,_,_,_ = DependencyChangeDetection.GetChanges(dependenciesFile,lockFile,false)

let checkResponse = if failOnFailedChecks then failwithf else traceWarnfn
let checkResponse = if failOnChecks then failwithf else traceWarnfn
if hasAnyChanges then
checkResponse "paket.dependencies and paket.lock are out of sync in %s.%sPlease run 'paket install' or 'paket update' to recompute the paket.lock file." lockFileName.Directory.FullName Environment.NewLine

Expand Down
4 changes: 2 additions & 2 deletions src/Paket/Commands.fs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ type RestoreArgs =
| [<CustomCommandLine("--only-referenced")>] Install_Only_Referenced
| [<CustomCommandLine("--touch-affected-refs")>] Touch_Affected_Refs
| [<CustomCommandLine("--ignore-checks")>] Ignore_Checks
| [<CustomCommandLine("--fail-on-failed-checks")>] Fail_On_Failed_Checks
| [<CustomCommandLine("--fail-on-checks")>] Fail_On_Checks
| [<CustomCommandLine("group")>] Group of name:string
| [<Unique>] References_Files of file_name:string list
with
Expand All @@ -168,7 +168,7 @@ with
| Install_Only_Referenced -> "Allows to restore packages that are referenced in paket.references files, instead of all packages in paket.dependencies."
| Touch_Affected_Refs -> "Touches project files referencing packages which are being restored, to help incremental build tools detecting the change."
| Ignore_Checks -> "Skips the test if paket.dependencies and paket.lock are in sync."
| Fail_On_Failed_Checks -> "Causes the restore to fail if any of the checks fail."
| Fail_On_Checks -> "Causes the restore to fail if any of the checks fail."
| References_Files(_) -> "Allows to restore all packages from the given paket.references files. This implies --only-referenced."

type SimplifyArgs =
Expand Down
6 changes: 3 additions & 3 deletions src/Paket/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ let restore (results : ParseResults<_>) =
let installOnlyReferenced = results.Contains <@ RestoreArgs.Install_Only_Referenced @>
let touchAffectedRefs = results.Contains <@ RestoreArgs.Touch_Affected_Refs @>
let ignoreChecks = results.Contains <@ RestoreArgs.Ignore_Checks @>
let failOnFailedChecks = results.Contains <@ RestoreArgs.Fail_On_Failed_Checks @>
if List.isEmpty files then Dependencies.Locate().Restore(force, group, installOnlyReferenced, touchAffectedRefs, ignoreChecks, failOnFailedChecks)
else Dependencies.Locate().Restore(force, group, files, touchAffectedRefs, ignoreChecks, failOnFailedChecks)
let failOnChecks = results.Contains <@ RestoreArgs.Fail_On_Checks @>
if List.isEmpty files then Dependencies.Locate().Restore(force, group, installOnlyReferenced, touchAffectedRefs, ignoreChecks, failOnChecks)
else Dependencies.Locate().Restore(force, group, files, touchAffectedRefs, ignoreChecks, failOnChecks)

let simplify (results : ParseResults<_>) =
let interactive = results.Contains <@ SimplifyArgs.Interactive @>
Expand Down

0 comments on commit d3b011d

Please sign in to comment.