Skip to content

Commit bb9ddc7

Browse files
authored
Merge pull request #149 from legendu-net/symlink
rename unused args to _
2 parents 909d79d + 3ba8327 commit bb9ddc7

File tree

20 files changed

+20
-20
lines changed

20 files changed

+20
-20
lines changed

cmd/data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// Pull data for icon from GitHub into ~/.config/icon-data.
11-
func data(cmd *cobra.Command, args []string) {
11+
func data(cmd *cobra.Command, _ []string) {
1212
dir := "~/.config/icon-data"
1313
if !utils.GetBoolFlag(cmd, "force") && utils.ExistsDir(dir+"/.git") {
1414
fmt.Println("Using existing data in ~/.config/icon-data.")

cmd/dev/golang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func installGoPls(prefix string) {
6060
}
6161

6262
// Install and configure Golang.
63-
func golang(cmd *cobra.Command, args []string) {
63+
func golang(cmd *cobra.Command, _ []string) {
6464
prefix := utils.GetCommandPrefix(false, map[string]uint32{
6565
"/usr/local/go": unix.W_OK | unix.R_OK,
6666
"/usr/local": unix.W_OK | unix.R_OK,

cmd/dev/pytype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
// Install and configure pytype.
14-
func pytype(cmd *cobra.Command, args []string) {
14+
func pytype(cmd *cobra.Command, _ []string) {
1515
if utils.GetBoolFlag(cmd, "install") {
1616
command := utils.Format("{pip_install} pytype", map[string]string{
1717
"pip_install": utils.BuildPipInstall(cmd),

cmd/dev/rust.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func installCargoBinstall() {
104104
}
105105

106106
// Install and configure Rust.
107-
func rust(cmd *cobra.Command, args []string) {
107+
func rust(cmd *cobra.Command, _ []string) {
108108
rustupHome := utils.GetStringFlag(cmd, "rustup-home")
109109
if rustupHome == "" {
110110
rustupHome = filepath.Join(utils.UserHomeDir(), ".rustup")

cmd/ide/neovim.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// Install and configure neovim.
11-
func neovim(cmd *cobra.Command, args []string) {
11+
func neovim(cmd *cobra.Command, _ []string) {
1212
Neovim(
1313
utils.GetBoolFlag(cmd, "install"),
1414
utils.GetBoolFlag(cmd, "config"),

cmd/ide/vscode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
// Install and configure Visual Studio Code.
12-
func vscode(cmd *cobra.Command, args []string) {
12+
func vscode(cmd *cobra.Command, _ []string) {
1313
if utils.GetBoolFlag(cmd, "install") {
1414
switch runtime.GOOS {
1515
case "linux":

cmd/jupyter/ganymede.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
// Install and configure Ganymede.
14-
func ganymede(cmd *cobra.Command, args []string) {
14+
func ganymede(cmd *cobra.Command, _ []string) {
1515
if utils.GetBoolFlag(cmd, "install") {
1616
tmpdir := utils.CreateTempDir("")
1717
defer os.RemoveAll(tmpdir)

cmd/jupyter/ipython.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// Install and configure IPython.
11-
func ipython(cmd *cobra.Command, args []string) {
11+
func ipython(cmd *cobra.Command, _ []string) {
1212
if utils.GetBoolFlag(cmd, "install") {
1313
command := utils.Format("{prefix} {pip_install} ipython", map[string]string{
1414
"prefix": utils.GetCommandPrefix(

cmd/jupyter/jupyter_book.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// Install and configure jupyter_book.
11-
func jupyter_book(cmd *cobra.Command, args []string) {
11+
func jupyter_book(cmd *cobra.Command, _ []string) {
1212
if utils.GetBoolFlag(cmd, "install") {
1313
command := utils.Format("{pip_install} jupyter-book", map[string]string{
1414
"pip_install": utils.BuildPipInstall(cmd),

cmd/jupyter/jupyterlab_vim.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
// Install and configure the jupyterlab_vim extension for JupyterLab.
9-
func jupyterlab_vim(cmd *cobra.Command, args []string) {
9+
func jupyterlab_vim(cmd *cobra.Command, _ []string) {
1010
prefix := utils.GetCommandPrefix(
1111
utils.GetBoolFlag(cmd, "sudo"),
1212
map[string]uint32{},

0 commit comments

Comments
 (0)