mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 07:34:20 +03:00
11 lines
214 B
Bash
11 lines
214 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -eu
|
||
|
|
||
|
function prepend() { while read line; do echo "${1}${line}"; done; }
|
||
|
|
||
|
cargo metadata --format-version 1 \
|
||
|
| jq -r '.workspace_members[]' \
|
||
|
| cut -f1 -d" " \
|
||
|
| sort \
|
||
|
| prepend '- '
|