 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package command
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	"io"
 | |
| 	"strings"
 | |
| 
 | |
| 	"github.com/onsi/ginkgo/v2/formatter"
 | |
| 	"github.com/onsi/ginkgo/v2/types"
 | |
| )
 | |
| 
 | |
| type Command struct {
 | |
| 	Name          string
 | |
| 	Flags         types.GinkgoFlagSet
 | |
| 	Usage         string
 | |
| 	ShortDoc      string
 | |
| 	Documentation string
 | |
| 	DocLink       string
 | |
| 	Command       func(args []string, additionalArgs []string)
 | |
| }
 | |
| 
 | |
| func (c Command) Run(args []string, additionalArgs []string) {
 | |
| 	args, err := c.Flags.Parse(args)
 | |
| 	if err != nil {
 | |
| 		AbortWithUsage(err.Error())
 | |
| 	}
 | |
| 
 | |
| 	c.Command(args, additionalArgs)
 | |
| }
 | |
| 
 | |
| func (c Command) EmitUsage(writer io.Writer) {
 | |
| 	fmt.Fprintln(writer, formatter.F("{{bold}}"+c.Usage+"{{/}}"))
 | |
| 	fmt.Fprintln(writer, formatter.F("{{gray}}%s{{/}}", strings.Repeat("-", len(c.Usage))))
 | |
| 	if c.ShortDoc != "" {
 | |
| 		fmt.Fprintln(writer, formatter.Fiw(0, formatter.COLS, c.ShortDoc))
 | |
| 		fmt.Fprintln(writer, "")
 | |
| 	}
 | |
| 	if c.Documentation != "" {
 | |
| 		fmt.Fprintln(writer, formatter.Fiw(0, formatter.COLS, c.Documentation))
 | |
| 		fmt.Fprintln(writer, "")
 | |
| 	}
 | |
| 	if c.DocLink != "" {
 | |
| 		fmt.Fprintln(writer, formatter.Fi(0, "{{bold}}Learn more at:{{/}} {{cyan}}{{underline}}http://onsi.github.io/ginkgo/#%s{{/}}", c.DocLink))
 | |
| 		fmt.Fprintln(writer, "")
 | |
| 	}
 | |
| 	flagUsage := c.Flags.Usage()
 | |
| 	if flagUsage != "" {
 | |
| 		fmt.Fprintf(writer, formatter.F(flagUsage))
 | |
| 	}
 | |
| }
 |