mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
chore(deps): bump golangci/golangci-lint-action from 3.7.0 to 3.7.1
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](3a91952989...3cfe3a4abb
)
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
a9ffa1b727
commit
87555288eb
2
.github/workflows/code.yml
vendored
2
.github/workflows/code.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||
- name: Golang CI
|
||||
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
|
||||
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
|
||||
with:
|
||||
working-directory: src
|
||||
- name: Unit Tests
|
||||
|
|
|
@ -33,7 +33,7 @@ Exports the ~/myconfig.omp.json config file and prints the result to stdout.
|
|||
|
||||
Exports the ~/myconfig.omp.json config file to toml and prints the result to stdout.`,
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
env := &platform.Shell{
|
||||
CmdFlags: &platform.Flags{
|
||||
Config: config,
|
||||
|
|
|
@ -46,7 +46,7 @@ Exports the config to an image file ~/mytheme.png.
|
|||
|
||||
Exports the config to an image file using customized output options.`,
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
env := &platform.Shell{
|
||||
CmdFlags: &platform.Flags{
|
||||
Config: config,
|
||||
|
|
|
@ -38,7 +38,7 @@ Migrates the ~/myconfig.omp.json config file to TOML and writes the result to yo
|
|||
|
||||
A backup of the current config can be found at ~/myconfig.omp.json.bak.`,
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
env := &platform.Shell{
|
||||
CmdFlags: &platform.Flags{
|
||||
Config: config,
|
||||
|
|
|
@ -33,7 +33,7 @@ Migrates the ~/myconfig.omp.json config file's glyphs and writes the result to y
|
|||
|
||||
A backup of the current config can be found at ~/myconfig.omp.json.bak.`,
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
env := &platform.Shell{
|
||||
CmdFlags: &platform.Flags{
|
||||
Config: config,
|
||||
|
|
|
@ -19,7 +19,7 @@ var debugCmd = &cobra.Command{
|
|||
Short: "Print the prompt in debug mode",
|
||||
Long: "Print the prompt in debug mode.",
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
startTime := time.Now()
|
||||
env := &platform.Shell{
|
||||
CmdFlags: &platform.Flags{
|
||||
|
|
|
@ -14,7 +14,7 @@ var noticeCmd = &cobra.Command{
|
|||
Short: "Print the upgrade notice when a new version is available.",
|
||||
Long: "Print the upgrade notice when a new version is available.",
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
env := &platform.Shell{
|
||||
CmdFlags: &platform.Flags{},
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ var promptCmd = &cobra.Command{
|
|||
Short: "Set up the prompt for your shell (deprecated)",
|
||||
Long: `Set up the prompt for your shell. (deprecated)`,
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
_ = cmd.Help()
|
||||
},
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ var RootCmd = &cobra.Command{
|
|||
It can use the same configuration everywhere to offer a consistent
|
||||
experience, regardless of where you are. For a detailed guide
|
||||
on getting started, have a look at the docs at https://ohmyposh.dev`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
if initialize {
|
||||
runInit(strings.ToLower(shellName))
|
||||
return
|
||||
|
|
|
@ -17,7 +17,7 @@ var versionCmd = &cobra.Command{
|
|||
Short: "Print the version",
|
||||
Long: "Print the version number of oh-my-posh.",
|
||||
Args: cobra.NoArgs,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
if !verbose {
|
||||
fmt.Println(build.Version)
|
||||
return
|
||||
|
|
|
@ -77,7 +77,7 @@ func getWindowFileName(handle syscall.Handle) (string, error) {
|
|||
func queryWindowTitles(processName, windowTitleRegex string) (string, error) {
|
||||
var title string
|
||||
// callback for EnumWindows
|
||||
cb := syscall.NewCallback(func(handle syscall.Handle, pointer uintptr) uintptr {
|
||||
cb := syscall.NewCallback(func(handle syscall.Handle, _ uintptr) uintptr {
|
||||
fileName, err := getWindowFileName(handle)
|
||||
if err != nil {
|
||||
// ignore the error and continue enumeration
|
||||
|
|
Loading…
Reference in a new issue