Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dgp1130/nu_plugin_bazel_build
https://github.com/dgp1130/nu_plugin_bazel_build
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dgp1130/nu_plugin_bazel_build
- Owner: dgp1130
- Created: 2019-10-07T02:48:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T23:37:41.000Z (about 5 years ago)
- Last Synced: 2024-10-06T02:01:49.875Z (about 1 month ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NuShell Bazel BUILD Plugin
This is a plugin to enable reading/writing of Bazel BUILD files.
My most elaborate bash commands have always been when attempting automated refactorings of BUILD files.
Nushell's structured data format lends itself much better to the complex format of a BUILD file and
this plugin attempts to make this format easier to work with.## Install
First install Golang and Nushell. Then install this plugin with:
```bash
go install nu_plugin_from_build.go
```Make sure `$GOBIN` is on the path so that Nushell picks up the plugin. Don't forget to restart Nushell
as well, because it only loads plugins on startup.## Usage
This should work like so:
```nu
> open path/to/pkg/BUILD | from-build
# Structured table of BUILD file.
```Edits can then be made and saved back to the file:
```nu
> open path/to/pkg/BUILD | from-build | | to-build | save
```