Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asdine/cueimports
CUE tool that updates your import lines, adding missing ones and removing unused ones.
https://github.com/asdine/cueimports
cue editor-tool go
Last synced: 15 days ago
JSON representation
CUE tool that updates your import lines, adding missing ones and removing unused ones.
- Host: GitHub
- URL: https://github.com/asdine/cueimports
- Owner: asdine
- License: mit
- Created: 2022-09-13T01:17:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-01T15:49:52.000Z (over 1 year ago)
- Last Synced: 2024-10-04T13:13:41.534Z (about 1 month ago)
- Topics: cue, editor-tool, go
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 22
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cue - cueimports - CUE tool that manages your import lines. (Projects)
README
# cueimports
cueimports is a [CUE](https://github.com/cue-lang/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
```bash
go install github.com/asdine/cueimports/cmd/cueimports
```## Usage
```bash
$ echo "data: json.Marshal({a: math.Sqrt(7)})" | cueimports
``````
import (
"encoding/json"
"math"
)data: json.Marshal({a: math.Sqrt(7)})
```