feat: initial copy of v0.1.0
This commit is contained in:
parent
4cc801a7f3
commit
7d4cbb6b08
538 changed files with 63361 additions and 55213 deletions
14
generator/cmd/publish/gpg.go
Normal file
14
generator/cmd/publish/gpg.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package publish
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func (p *Provider) ReadGpgFile() (string, error) {
|
||||
gpgFile, err := ReadFile(p.GpgPubKeyFile)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error reading '%s' file: %w", p.GpgPubKeyFile, err)
|
||||
}
|
||||
return strings.Join(gpgFile, "\n"), nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue