https://github.com/zicklag/drone-script-dumper
Tiny utility to dump out the scripts from a .drone.yml so that you can paste them into a terminal.
https://github.com/zicklag/drone-script-dumper
Last synced: 5 months ago
JSON representation
Tiny utility to dump out the scripts from a .drone.yml so that you can paste them into a terminal.
- Host: GitHub
- URL: https://github.com/zicklag/drone-script-dumper
- Owner: zicklag
- Created: 2019-07-01T16:46:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T16:54:12.000Z (over 6 years ago)
- Last Synced: 2025-07-23T21:39:21.862Z (6 months ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drone Script Dumper
This is just a super tiny script that will dump all of the data from the `commands` portions of a `.drone.yml` file so that you can paste them into a terminal without having to remove all of the YAML formatting manually. The script has no configuration and will just read the .drone.yml file in the current directory.
## Usage
In a directory with a `.drone.yml` file ( in this case the [Drone](https://github.com/drone/drone) repo ):
```
$ drone-script-dumper
Pipeline: linux-amd64
============
Step: test
--------
go test -v ./...
Step: build
--------
go build -ldflags "-extldflags \\"-static\\"" -o release/linux/amd64/drone-server github.com/drone/drone/cmd/drone-server
CGO_ENABLED=0 go build -o release/linux/amd64/drone-agent github.com/drone/drone/cmd/drone-agent
CGO_ENABLED=0 go build -o release/linux/amd64/drone-controller github.com/drone/drone/cmd/drone-controller
Step: publish_agent
--------
Step: publish_controller
--------
Step: publish_server
--------
Pipeline: linux-arm
============
Step: test
--------
go test -v ./...
Step: build
--------
go build -ldflags "-extldflags \\"-static\\"" -o release/linux/arm/drone-server github.com/drone/drone/cmd/drone-server
CGO_ENABLED=0 go build -o release/linux/arm/drone-agent github.com/drone/drone/cmd/drone-agent
CGO_ENABLED=0 go build -o release/linux/arm/drone-controller github.com/drone/drone/cmd/drone-controller
Step: publish_agent
--------
Step: publish_controller
--------
Step: publish_server
--------
Pipeline: linux-arm64
============
Step: test
--------
go test -v ./...
Step: build
--------
go build -ldflags "-extldflags \\"-static\\"" -o release/linux/arm64/drone-server github.com/drone/drone/cmd/drone-server
CGO_ENABLED=0 go build -o release/linux/arm64/drone-agent github.com/drone/drone/cmd/drone-agent
CGO_ENABLED=0 go build -o release/linux/arm64/drone-controller github.com/drone/drone/cmd/drone-controller
Step: publish_agent
--------
Step: publish_controller
--------
Step: publish_server
--------
Pipeline: manifest
============
Step: server
--------
Step: controller
--------
Step: agent
--------
```