1
// Copyright 2015 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
11
"github.com/juju/errors"
12
"gopkg.in/juju/charm.v6-unstable"
15
func readMetadata(ctx *cmd.Context) (*charm.Meta, error) {
16
filename := filepath.Join(ctx.Dir, "metadata.yaml")
17
file, err := os.Open(filename)
19
return nil, errors.Trace(err)
22
meta, err := charm.ReadMeta(file)
24
return nil, errors.Trace(err)