add GetAddonDir to context

This commit is contained in:
Mauro Regli
2023-05-30 15:25:40 +02:00
committed by André Roth
parent 31ccce1343
commit bc090e1dce

View File

@@ -527,6 +527,11 @@ func (context *AptlyContext) GetVerifier() pgp.Verifier {
return pgp.NewGpgVerifier(context.getGPGFinder())
}
// AddonPath builds the local addon folder
func (context *AptlyContext) AddonPath() string {
return filepath.Join(context.config().RootDir, "addon")
}
// UpdateFlags sets internal copy of flags in the context
func (context *AptlyContext) UpdateFlags(flags *flag.FlagSet) {
context.Lock()