mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
Compare commits
7 commits
905ac2a11d
...
990696e419
Author | SHA1 | Date | |
---|---|---|---|
![]() |
990696e419 | ||
![]() |
cd5da0dfb3 | ||
![]() |
6a9fae4211 | ||
![]() |
4f0f4bad2d | ||
![]() |
084cb6630c | ||
![]() |
ec83b8b4ba | ||
![]() |
0c2cce90f6 |
4 changed files with 18 additions and 5 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '^1.24.0'
|
go-version: '^1.24.0'
|
||||||
|
|
||||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '^1.24.0'
|
go-version: '^1.24.0'
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ jobs:
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '^1.24.0'
|
go-version: '^1.24.0'
|
||||||
|
|
||||||
|
|
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Stale
|
- name: Stale
|
||||||
uses: actions/stale@v9
|
uses: actions/stale@v10
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-issue-message: 'This issue has been marked stale because it has been open for 60 days with no activity.'
|
stale-issue-message: 'This issue has been marked stale because it has been open for 60 days with no activity.'
|
||||||
|
|
15
README.md
15
README.md
|
@ -7,9 +7,12 @@
|
||||||
<a href="https://github.com/schollz/croc/actions/workflows/ci.yml">
|
<a href="https://github.com/schollz/croc/actions/workflows/ci.yml">
|
||||||
<img src="https://github.com/schollz/croc/actions/workflows/ci.yml/badge.svg" alt="Build Status">
|
<img src="https://github.com/schollz/croc/actions/workflows/ci.yml/badge.svg" alt="Build Status">
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/sponsors/schollz"> <img
|
||||||
|
alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/schollz">
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
This project is supported by <a href="https://github.com/sponsors/schollz">GitHub sponsors</a>.
|
<strong>This project’s future depends on community support. <a href="https://github.com/sponsors/schollz">Become a sponsor today</a>.</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
@ -149,6 +152,16 @@ Or install into a particular environment with [`conda`](https://docs.conda.io/pr
|
||||||
conda install --channel conda-forge croc
|
conda install --channel conda-forge croc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### On Linux, macOS via Docker
|
||||||
|
|
||||||
|
Add the following one-liner function to your ~/.profile (works with any POSIX-compliant shell):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
croc() { [ $# -eq 0 ] && set -- ""; docker run --rm -it --user "$(id -u):$(id -g)" -v "$(pwd):/c" -v "$HOME/.config/croc:/.config/croc" -w /c -e CROC_SECRET schollz/croc "$@"; }
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also just paste it in the terminal for current session. On first run Docker will pull the image. `croc` via Docker will only work within the current directory and its subdirectories.
|
||||||
|
|
||||||
### Build from Source
|
### Build from Source
|
||||||
|
|
||||||
If you prefer, you can [install Go](https://go.dev/dl/) and build from source (requires Go 1.22+):
|
If you prefer, you can [install Go](https://go.dev/dl/) and build from source (requires Go 1.22+):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue