asdine/cueimports

CUE tool that updates your import lines, adding missing ones and removing unused ones.

24

stars

28

commits

Go

primary language

Feb 10, 2025

updated

cue
editor-tool
go

README

cueimports

cueimports is a CUE tool that updates your import lines, adding missing ones and removing unused ones.

It scans through:

  • your local packages
  • the cue.mod directory packages
  • the standard library packages

Install

go install github.com/asdine/cueimports/cmd/cueimports@latest

Usage

$ echo "data: json.Marshal({a: math.Sqrt(7)})" | cueimports
import (
	"encoding/json"
	"math"
)

data: json.Marshal({a: math.Sqrt(7)})

Contributors

asdine

26 commits

johnallen3d

1 commits

oncilla

1 commits

asdine/cueimports

CUE tool that updates your import lines, adding missing ones and removing unused ones.

24

stars

28

commits

Go

primary language

Feb 10, 2025

updated

cue
editor-tool
go

README

cueimports

cueimports is a CUE tool that updates your import lines, adding missing ones and removing unused ones.

It scans through:

  • your local packages
  • the cue.mod directory packages
  • the standard library packages

Install

go install github.com/asdine/cueimports/cmd/cueimports@latest

Usage

$ echo "data: json.Marshal({a: math.Sqrt(7)})" | cueimports
import (
	"encoding/json"
	"math"
)

data: json.Marshal({a: math.Sqrt(7)})

Contributors

asdine

26 commits

johnallen3d

1 commits

oncilla

1 commits

Languages

Go

98.3%

HCL

1.7%