Skip to content

Create a install function in the api which takes deps file as text #576

Description

@forki

@dsyme created a nice sample which only uses only fsi to install a bunch of packages see https://gist.github.com/dsyme/9b18608b78dccf92ba33

in order to make things even better he proposed the following addition for our API:

// This will be added to paket.exe in a future version
module Paket = 
    type Scripting() = 
        static member Install(dependencies, ?force, ?hard) = 
            System.IO.File.WriteAllText("paket.dependencies", dependencies)
            let dependencies = Paket.Dependencies.Locate(__SOURCE_DIRECTORY__)
            dependencies.Install(force=defaultArg force false, hard=defaultArg hard false)

Activity

  1. self-assigned this
    on Feb 2, 2015
  2. dsyme commented on Feb 2, 2015

    @dsyme
    Contributor

    Great! I'll update the gist

  3. moodmosaic commented on Feb 2, 2015

    @moodmosaic

    Awesome! FYI, I also did here and left a note in the original gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions