[CLI] implement forgejo-cli actions (squash) restore --version

Refs: https://codeberg.org/forgejo/forgejo/issues/1134
This commit is contained in:
Earl Warren 2023-07-26 15:20:32 +02:00
parent 7e097b945c
commit e2000f5bfc
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 30 additions and 27 deletions

View file

@ -23,6 +23,10 @@ func TestMain(m *testing.M) {
})
}
func makePathOutput(workPath, customPath, customConf string) string {
return fmt.Sprintf("WorkPath=%s\nCustomPath=%s\nCustomConf=%s", workPath, customPath, customConf)
}
func newTestApp() *cli.App {
app := NewMainApp()
testCmd := &cli.Command{