0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

Compare commits

..

No commits in common. "990696e419559ae911a6a6d8d6604e89556c91bb" and "905ac2a11d77ee053dbabe348c023173509ee8be" have entirely different histories.

4 changed files with 5 additions and 18 deletions

View file

@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v6 uses: actions/setup-go@v5
with: with:
go-version: '^1.24.0' go-version: '^1.24.0'

View file

@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v5 uses: actions/checkout@v5
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v6 uses: actions/setup-go@v5
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@v6 uses: actions/setup-go@v5
with: with:
go-version: '^1.24.0' go-version: '^1.24.0'

View file

@ -13,7 +13,7 @@ jobs:
steps: steps:
- name: Stale - name: Stale
uses: actions/stale@v10 uses: actions/stale@v9
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.'

View file

@ -7,12 +7,9 @@
<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">
<strong>This project’s future depends on community support. <a href="https://github.com/sponsors/schollz">Become a sponsor today</a>.</strong> This project is supported by <a href="https://github.com/sponsors/schollz">GitHub sponsors</a>.
</p> </p>
## About ## About
@ -152,16 +149,6 @@ 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+):