Skip to content

Commit 325d391

Browse files
authored
Merge pull request #630 from skyscrapers/expose-context
Expose the context outside of the cmd package.
2 parents e0aaa8b + 91a3dc9 commit 325d391

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cmd/context.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ func InitContext(flags *flag.FlagSet) error {
2929

3030
return err
3131
}
32+
33+
// GetContext gives access to the context
34+
func GetContext() *ctx.AptlyContext {
35+
return context
36+
}

0 commit comments

Comments
 (0)