main.go 438 B

123456789101112131415161718192021222324252627
  1. // Copyright 2025 BackendServerTemplate Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package main
  5. import "os"
  6. func main() {
  7. os.Exit(command())
  8. }
  9. func command() int {
  10. var err error
  11. err = InitGitData()
  12. if err != nil {
  13. return ReturnError(err)
  14. }
  15. err = CreatePatch()
  16. if err != nil {
  17. return ReturnError(err)
  18. }
  19. return ReturnSuccess()
  20. }