Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename rdme to runme #35

Merged
merged 1 commit into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
go-version: ${{ matrix.go }}
- name: Build
run: |
go build -o rdme main.go
./rdme --version
go build -o runme main.go
./runme --version
- name: Test
run: TZ=UTC go test ./...
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down
30 changes: 11 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: release
on:
push:
tags:
- '*'
- "*"
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -14,13 +14,11 @@ jobs:
id-token: write

steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Prepare
- name: Prepare
id: prepare
run: |
# Get rid of v prefix.
Expand All @@ -31,29 +29,24 @@ jobs:
if [[ "$ref_name" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
echo "pre_release=false" >> $GITHUB_ENV
fi
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
-
name: Auth to GCP
go-version: "1.18"
- name: Auth to GCP
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
create_credentials_file: true
export_environment_variables: true
-
name: Set up gcloud
- name: Set up gcloud
uses: google-github-actions/setup-gcloud@v0
-
name: Release notes
- name: Release notes
run: |
go run ./cmd/release-notes/main.go -version "${GITHUB_REF_NAME}" > ${{ runner.temp }}/releasenotes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
Expand All @@ -63,7 +56,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
SCOOP_BUCKET_GITHUB_TOKEN: ${{ secrets.SCOOP_BUCKET_GITHUB_TOKEN }}
-
name: Copy to latest
- name: Copy to latest
if: env.pre_release == 'false'
run: gsutil -m cp "gs://rdme-artifacts-b4e64f/${{ env.version }}/*" gs://rdme-artifacts-b4e64f/latest
run: gsutil -m cp "gs://runme-artifacts-41eac6/${{ env.version }}/*" gs://runme-artifacts-41eac6/latest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ gha-creds-*.json

# Binary build with make
rdme
runme

# Logs
*.log
Expand Down
22 changes: 11 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_name: rdme
project_name: runme

snapshot:
name_template: "{{ incpatch .Version }}-next"
Expand Down Expand Up @@ -69,13 +69,13 @@ archives:

blobs:
- provider: gs
bucket: rdme-artifacts-b4e64f
bucket: runme-artifacts-41eac6
ids:
- cli
folder: "{{ .Version }}"

brews:
- name: rdme
- name: runme
ids:
- cli
homepage: https://stateful.com
Expand All @@ -84,7 +84,7 @@ brews:
owner: stateful
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://download.stateful.com/rdme/{{ .Version }}/{{ .ArtifactName }}"
url_template: "https://download.stateful.com/runme/{{ .Version }}/{{ .ArtifactName }}"
dependencies: []
skip_upload: auto
folder: Formula
Expand All @@ -93,16 +93,16 @@ brews:
name: release-bot
email: bot@stateful.com
install: |
bin.install "rdme"
(bash_completion/"rdme").write `#{bin}/rdme completion bash`
(fish_completion/"rdme.fish").write `#{bin}/rdme completion fish`
(zsh_completion/"_rdme").write `#{bin}/rdme completion zsh`
bin.install "runme"
(bash_completion/"runme").write `#{bin}/runme completion bash`
(fish_completion/"runme.fish").write `#{bin}/runme completion fish`
(zsh_completion/"_runme").write `#{bin}/runme completion zsh`
test: |
assert_match "rdme #{version}", shell_output("#{bin}/rdme version")
assert_match "runme #{version}", shell_output("#{bin}/runme version")

nfpms:
- id: cli
package_name: rdme
package_name: runme
builds:
- cli
replacements:
Expand All @@ -119,7 +119,7 @@ nfpms:
- rpm

scoop:
url_template: "https://download.stateful.com/rdme/{{ .Version }}/{{ .ArtifactName }}"
url_template: "https://download.stateful.com/runme/{{ .Version }}/{{ .ArtifactName }}"
bucket:
owner: stateful
name: scoop-bucket
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"host": "127.0.0.1"
},
{
"name": "Launch rdme json",
"name": "Launch runme json",
"type": "go",
"request": "launch",
"mode": "auto",
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ LDFLAGS := -s -w \

.PHONY: build
build:
go build -o rdme -ldflags="$(LDFLAGS)" main.go
go build -o runme -ldflags="$(LDFLAGS)" main.go

.PHONY: wasm
wasm: WASM_OUTPUT ?= examples/web
wasm:
cp $(GO_ROOT)/misc/wasm/wasm_exec.js $(WASM_OUTPUT)
GOOS=js GOARCH=wasm go build -o $(WASM_OUTPUT)/rdme.wasm -ldflags="$(LDFLAGS)" ./web
GOOS=js GOARCH=wasm go build -o $(WASM_OUTPUT)/runme.wasm -ldflags="$(LDFLAGS)" ./web

.PHONY: test
test:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# rdme
# runme

Discover and run code snippets directly from your `README.md` or other markdowns (defaults to local `README.md`).

rdme makes a best effort approach to extracts all code snippets defined in code blocks and allowing to explore and execute them. rdme is currently in early alpha.
runme makes a best effort approach to extracts all code snippets defined in code blocks and allowing to explore and execute them. runme is currently in early alpha.

You can execute commands from a different directory using a `--chdir` flag.
To select a different file than `README.md`, use `--filename`.
Expand All @@ -12,16 +12,16 @@ To select a different file than `README.md`, use `--filename`.
The easiest way on MacOS is to use Homebrew:

```sh
$ brew install stateful/tap/rdme
$ brew install stateful/tap/runme
```

Alternatively, check out [rdme's releases](https://github.com/stateful/rdme/releases) and select
Alternatively, check out [runme's releases](https://github.com/stateful/runme/releases) and select
a binary for your operating system.

If you have Go developer tools installed, you can install it with `go install`:

```sh
$ go install github.com/stateful/rdme@latest
$ go install github.com/stateful/runme@latest
```

## Contributing & Feedback
Expand Down
28 changes: 14 additions & 14 deletions cmd/release-notes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ var tpl = template.Must(template.New("").Funcs(template.FuncMap{"split": split})

### macOS:

* [rdme_darwin_x86_64.tar.gz](https://download.stateful.com/rdme/{{ .Version }}/rdme_darwin_x86_64.tar.gz)
* [rdme_darwin_arm64.tar.gz](https://download.stateful.com/rdme/{{ .Version }}/rdme_darwin_arm64.tar.gz)
* [runme_darwin_x86_64.tar.gz](https://download.stateful.com/runme/{{ .Version }}/runme_darwin_x86_64.tar.gz)
* [runme_darwin_arm64.tar.gz](https://download.stateful.com/runme/{{ .Version }}/runme_darwin_arm64.tar.gz)

### Linux

* [rdme_linux_x86_64.deb](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_x86_64.deb)
* [rdme_linux_arm64.deb](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_arm64.deb)
* [rdme_linux_x86_64.rpm](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_x86_64.rpm)
* [rdme_linux_arm64.rpm](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_arm64.rpm)
* [rdme_linux_x86_64.apk](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_x86_64.apk)
* [rdme_linux_arm64.apk](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_arm64.apk)
* [rdme_linux_x86_64.tar.gz](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_x86_64.tar.gz)
* [rdme_linux_arm64.tar.tz](https://download.stateful.com/rdme/{{ .Version }}/rdme_linux_arm64.tar.gz)
* [runme_linux_x86_64.deb](https://download.stateful.com/runme/{{ .Version }}/runme_linux_x86_64.deb)
* [runme_linux_arm64.deb](https://download.stateful.com/runme/{{ .Version }}/runme_linux_arm64.deb)
* [runme_linux_x86_64.rpm](https://download.stateful.com/runme/{{ .Version }}/runme_linux_x86_64.rpm)
* [runme_linux_arm64.rpm](https://download.stateful.com/runme/{{ .Version }}/runme_linux_arm64.rpm)
* [runme_linux_x86_64.apk](https://download.stateful.com/runme/{{ .Version }}/runme_linux_x86_64.apk)
* [runme_linux_arm64.apk](https://download.stateful.com/runme/{{ .Version }}/runme_linux_arm64.apk)
* [runme_linux_x86_64.tar.gz](https://download.stateful.com/runme/{{ .Version }}/runme_linux_x86_64.tar.gz)
* [runme_linux_arm64.tar.tz](https://download.stateful.com/runme/{{ .Version }}/runme_linux_arm64.tar.gz)

### Windows

* [rdme_windows_x86_64.zip](https://download.stateful.com/rdme/{{ .Version }}/rdme_windows_x86_64.zip)
* [rdme_windows_arm64.zip](https://download.stateful.com/rdme/{{ .Version }}/rdme_windows_arm64.zip)
* [runme_windows_x86_64.zip](https://download.stateful.com/runme/{{ .Version }}/runme_windows_x86_64.zip)
* [runme_windows_arm64.zip](https://download.stateful.com/runme/{{ .Version }}/runme_windows_arm64.zip)

## Changelog

[Full changelog](https://github.com/stateful/rdme/compare/v{{ or .PreviousVersion "main" }}...v{{ .Version }})
[Full changelog](https://github.com/stateful/runme/compare/v{{ or .PreviousVersion "main" }}...v{{ .Version }})

{{ range $value := .Commits -}}
* {{ $value.SHA }}: {{ (split "\n" $value.Commit.Message)._0 }} ([@{{ $value.Author.Login }}]({{ $value.Author.HTMLURL }}))
Expand Down Expand Up @@ -83,7 +83,7 @@ var flagsConfig = config{}

func init() {
flag.StringVar(&flagsConfig.Owner, "owner", "stateful", "Owner of the repository")
flag.StringVar(&flagsConfig.Repo, "repo", "rdme", "Repository name")
flag.StringVar(&flagsConfig.Repo, "repo", "runme", "Repository name")
flag.StringVar(&flagsConfig.Version, "version", "", "The new version, for example v0.1.1")

flag.Usage = func() {
Expand Down
10 changes: 5 additions & 5 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
This is a basic snippet with shell command:

```sh
$ echo "Hello, rdme!"
$ echo "Hello, runme!"
```

With `{name=hello}` you can annotate it and give it a nice name:

```sh {name=echo}
$ echo "Hello, rdme!"
$ echo "Hello, runme!"
```

It can contain multiple lines too:
Expand All @@ -25,13 +25,13 @@ $ echo "3"
Also, the dollar sign is not needed:

```sh
echo "Hello, rdme! Again!"
echo "Hello, runme! Again!"
```

It works with `cd`, `pushd`, and similar because all lines are executed as a single script:

```sh
temp_dir=$(mktemp -d -t "rdme-")
temp_dir=$(mktemp -d -t "runme-")
pushd $temp_dir
echo "hi!" > hi.txt
pwd
Expand All @@ -52,6 +52,6 @@ import (
)

func main() {
fmt.Println("Hello from Go, rdme!")
fmt.Println("Hello from Go, runme!")
}
```
4 changes: 2 additions & 2 deletions examples/web/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# WASM example

This is an example of running rdme in a browser using WASM.
This is an example of running runme in a browser using WASM.

First, run `make wasm` from the root of the project. It will build rdme and copy proper files into this directory.
First, run `make wasm` from the root of the project. It will build runme and copy proper files into this directory.

Second, start a webserver in this directory, for example, `python -m http.server 9000` and open `http://localhost:9000` in a browser. In the Developer Tools > Console you should see parsed snippets of some README.md file.
4 changes: 2 additions & 2 deletions examples/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"IyBUb3J0dWdhIEFQSQoKVGhlIEF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0KJCBjdXJsIC1YUE9TVCAtSCAiQ29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9qc29uIiBsb2NhbGhvc3Q6ODA4MC9lZGl0b3ItY29uZmlncy8gLWQgJ3siZGF0YSI6ICJ7XCJmaWxlcy5hdXRvU2F2ZVwiOiBcImFmdGVyRGVsYXlcIn0ifScKeyJpZCI6IjRjN2Q2ZmI1LWViNTMtNDRmNy04ODgzLTgwZjI3NmFmNjVhMSJ9CmBgYAo="
);
const go = new Go();
WebAssembly.instantiateStreaming(fetch("rdme.wasm"), go.importObject).then((rdme) => {
go.run(rdme.instance);
WebAssembly.instantiateStreaming(fetch("runme.wasm"), go.importObject).then((runme) => {
go.run(runme.instance);
console.log(GetSnippets(markdown));
console.log(GetDocument(markdown));
});
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/stateful/rdme
module github.com/stateful/runme

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/stateful/rdme/internal/document"
"github.com/stateful/rdme/internal/renderer"
"github.com/stateful/runme/internal/document"
"github.com/stateful/runme/internal/renderer"
)

func getCodeBlocks() (document.CodeBlocks, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var (

func Root() *cobra.Command {
cmd := cobra.Command{
Use: "rdme",
Use: "runme",
Short: "Execute commands directly from a README",
Long: "Parses commands directly from a README (best-effort) to make them executable under a unique name.",
SilenceErrors: true,
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"strings"
"syscall"

"github.com/stateful/rdme/internal/document"
"github.com/stateful/runme/internal/document"

"github.com/pkg/errors"
"github.com/rwtodd/Go.Sed/sed"
"github.com/spf13/cobra"
"github.com/stateful/rdme/internal/runner"
"github.com/stateful/runme/internal/runner"
)

func runCmd() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/stateful/rdme/internal/tasks"
"github.com/stateful/runme/internal/tasks"
)

func tasksCmd() *cobra.Command {
Expand Down
Loading