Skip to content

Add function Pkg.create_project(project_name="", packages=[]) #3092

@ufechner7

Description

@ufechner7

Feature request

It should be easier to create new user projects. Currently you need to do:

mkdir new_project
cd new_project
julia --project="."
using Pkg
pkg"add LinearAlgebra"
prg"add StaticArrays"

This is just an example.
After this new feature is implemented you should be able to do:

julia
using Pkg
Pkg.create_project("new_project", ["LinearAlgebra","StaticArrays"])

This would make it easier to explain to new students how to create a user project.
Perhaps even an interactive dialog could be started if the parameters are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions