readPackageRecipe

Reads a package recipe from a file.

The file format (JSON/SDLang) will be determined from the file extension.

  1. PackageRecipe readPackageRecipe(string filename, string parent_name)
    readPackageRecipe
    (
    string filename
    ,
    string parent_name = null
    )
  2. PackageRecipe readPackageRecipe(NativePath filename, string parent_name)

Parameters

filename string

NativePath of the package recipe file

parent_name string

Optional name of the parent package (if this is a sub package)

Return Value

Returns the package recipe contents

Throws

Throws an exception if an I/O or syntax error occurs

Meta