mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:32:25 -05:00 
			
		
		
		
	[chore] update dependencies, bump to Go 1.19.1 (#826)
* update dependencies, bump Go version to 1.19 * bump test image Go version * update golangci-lint * update gotosocial-drone-build * sign * linting, go fmt * update swagger docs * update swagger docs * whitespace * update contributing.md * fuckin whoopsie doopsie * linterino, linteroni * fix followrequest test not starting processor * fix other api/client tests not starting processor * fix remaining tests where processor not started * bump go-runners version * don't check last-webfingered-at, processor may have updated this * update swagger command * update bun to latest version * fix embed to work the same as before with new bun Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
This commit is contained in:
		
					parent
					
						
							
								00d38855d4
							
						
					
				
			
			
				commit
				
					
						a156188b3e
					
				
			
		
					 1135 changed files with 258905 additions and 137146 deletions
				
			
		
							
								
								
									
										19
									
								
								vendor/github.com/spf13/cobra/bash_completions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/spf13/cobra/bash_completions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -73,7 +73,8 @@ __%[1]s_handle_go_custom_completion() | |||
|     # Prepare the command to request completions for the program. | ||||
|     # Calling ${words[0]} instead of directly %[1]s allows to handle aliases | ||||
|     args=("${words[@]:1}") | ||||
|     requestComp="${words[0]} %[2]s ${args[*]}" | ||||
|     # Disable ActiveHelp which is not supported for bash completion v1 | ||||
|     requestComp="%[8]s=0 ${words[0]} %[2]s ${args[*]}" | ||||
| 
 | ||||
|     lastParam=${words[$((${#words[@]}-1))]} | ||||
|     lastChar=${lastParam:$((${#lastParam}-1)):1} | ||||
|  | @ -99,7 +100,7 @@ __%[1]s_handle_go_custom_completion() | |||
|         directive=0 | ||||
|     fi | ||||
|     __%[1]s_debug "${FUNCNAME[0]}: the completion directive is: ${directive}" | ||||
|     __%[1]s_debug "${FUNCNAME[0]}: the completions are: ${out[*]}" | ||||
|     __%[1]s_debug "${FUNCNAME[0]}: the completions are: ${out}" | ||||
| 
 | ||||
|     if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then | ||||
|         # Error code.  No completion. | ||||
|  | @ -125,7 +126,7 @@ __%[1]s_handle_go_custom_completion() | |||
|         local fullFilter filter filteringCmd | ||||
|         # Do not use quotes around the $out variable or else newline | ||||
|         # characters will be kept. | ||||
|         for filter in ${out[*]}; do | ||||
|         for filter in ${out}; do | ||||
|             fullFilter+="$filter|" | ||||
|         done | ||||
| 
 | ||||
|  | @ -136,7 +137,7 @@ __%[1]s_handle_go_custom_completion() | |||
|         # File completion for directories only | ||||
|         local subdir | ||||
|         # Use printf to strip any trailing newline | ||||
|         subdir=$(printf "%%s" "${out[0]}") | ||||
|         subdir=$(printf "%%s" "${out}") | ||||
|         if [ -n "$subdir" ]; then | ||||
|             __%[1]s_debug "Listing directories in $subdir" | ||||
|             __%[1]s_handle_subdirs_in_dir_flag "$subdir" | ||||
|  | @ -147,7 +148,7 @@ __%[1]s_handle_go_custom_completion() | |||
|     else | ||||
|         while IFS='' read -r comp; do | ||||
|             COMPREPLY+=("$comp") | ||||
|         done < <(compgen -W "${out[*]}" -- "$cur") | ||||
|         done < <(compgen -W "${out}" -- "$cur") | ||||
|     fi | ||||
| } | ||||
| 
 | ||||
|  | @ -383,11 +384,11 @@ __%[1]s_handle_word() | |||
| 
 | ||||
| `, name, ShellCompNoDescRequestCmd, | ||||
| 		ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp, | ||||
| 		ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs)) | ||||
| 		ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, activeHelpEnvVar(name))) | ||||
| } | ||||
| 
 | ||||
| func writePostscript(buf io.StringWriter, name string) { | ||||
| 	name = strings.Replace(name, ":", "__", -1) | ||||
| 	name = strings.ReplaceAll(name, ":", "__") | ||||
| 	WriteStringAndCheck(buf, fmt.Sprintf("__start_%s()\n", name)) | ||||
| 	WriteStringAndCheck(buf, fmt.Sprintf(`{ | ||||
|     local cur prev words cword split | ||||
|  | @ -645,8 +646,8 @@ func gen(buf io.StringWriter, cmd *Command) { | |||
| 		gen(buf, c) | ||||
| 	} | ||||
| 	commandName := cmd.CommandPath() | ||||
| 	commandName = strings.Replace(commandName, " ", "_", -1) | ||||
| 	commandName = strings.Replace(commandName, ":", "__", -1) | ||||
| 	commandName = strings.ReplaceAll(commandName, " ", "_") | ||||
| 	commandName = strings.ReplaceAll(commandName, ":", "__") | ||||
| 
 | ||||
| 	if cmd.Root() == cmd { | ||||
| 		WriteStringAndCheck(buf, fmt.Sprintf("_%s_root_command()\n{\n", commandName)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue