Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
forki opened this issue Feb 2, 2015 · 2 comments
Closed

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

forki opened this issue Feb 2, 2015 · 2 comments
Assignees

Comments

@forki
Copy link
Member

forki commented Feb 2, 2015

@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)
@forki forki self-assigned this Feb 2, 2015
@forki forki closed this as completed in e72e6fe Feb 2, 2015
@dsyme
Copy link
Contributor

dsyme commented Feb 2, 2015

Great! I'll update the gist

@moodmosaic
Copy link

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

forki added a commit that referenced this issue Feb 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants