mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 00:42:24 -05:00 
			
		
		
		
	[chore]: Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#3016)
This commit is contained in:
		
					parent
					
						
							
								cc64de4dcc
							
						
					
				
			
			
				commit
				
					
						7ab404d643
					
				
			
		
					 12 changed files with 128 additions and 96 deletions
				
			
		
							
								
								
									
										13
									
								
								vendor/github.com/spf13/cobra/active_help.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/spf13/cobra/active_help.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -17,21 +17,17 @@ package cobra | |||
| import ( | ||||
| 	"fmt" | ||||
| 	"os" | ||||
| 	"regexp" | ||||
| 	"strings" | ||||
| ) | ||||
| 
 | ||||
| const ( | ||||
| 	activeHelpMarker = "_activeHelp_ " | ||||
| 	// The below values should not be changed: programs will be using them explicitly | ||||
| 	// in their user documentation, and users will be using them explicitly. | ||||
| 	activeHelpEnvVarSuffix  = "_ACTIVE_HELP" | ||||
| 	activeHelpGlobalEnvVar  = "COBRA_ACTIVE_HELP" | ||||
| 	activeHelpEnvVarSuffix  = "ACTIVE_HELP" | ||||
| 	activeHelpGlobalEnvVar  = configEnvVarGlobalPrefix + "_" + activeHelpEnvVarSuffix | ||||
| 	activeHelpGlobalDisable = "0" | ||||
| ) | ||||
| 
 | ||||
| var activeHelpEnvVarPrefixSubstRegexp = regexp.MustCompile(`[^A-Z0-9_]`) | ||||
| 
 | ||||
| // AppendActiveHelp adds the specified string to the specified array to be used as ActiveHelp. | ||||
| // Such strings will be processed by the completion script and will be shown as ActiveHelp | ||||
| // to the user. | ||||
|  | @ -60,8 +56,5 @@ func GetActiveHelpConfig(cmd *Command) string { | |||
| // variable.  It has the format <PROGRAM>_ACTIVE_HELP where <PROGRAM> is the name of the | ||||
| // root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`. | ||||
| func activeHelpEnvVar(name string) string { | ||||
| 	// This format should not be changed: users will be using it explicitly. | ||||
| 	activeHelpEnvVar := strings.ToUpper(fmt.Sprintf("%s%s", name, activeHelpEnvVarSuffix)) | ||||
| 	activeHelpEnvVar = activeHelpEnvVarPrefixSubstRegexp.ReplaceAllString(activeHelpEnvVar, "_") | ||||
| 	return activeHelpEnvVar | ||||
| 	return configEnvVar(name, activeHelpEnvVarSuffix) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue