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

Compare commits

...

7 commits

Author SHA1 Message Date
Zack
990696e419
Merge pull request #960 from schollz/dependabot/github_actions/actions/setup-go-6
build(deps): bump actions/setup-go from 5 to 6
2025-09-24 20:34:37 -07:00
Zack
cd5da0dfb3
Merge pull request #961 from schollz/dependabot/github_actions/actions/stale-10
build(deps): bump actions/stale from 9 to 10
2025-09-24 20:34:28 -07:00
Zack
6a9fae4211
Merge pull request #962 from AndrianBdn/main
Add Docker usage instructions for croc tool
2025-09-24 20:34:15 -07:00
Zack
4f0f4bad2d
Revise sponsorship message in README
Updated sponsorship message to emphasize community support.
2025-09-24 20:30:52 -07:00
Andrian Budantsov
084cb6630c
Add Docker usage instructions for croc tool 2025-09-04 18:35:38 +04:00
dependabot[bot]
ec83b8b4ba
build(deps): bump actions/stale from 9 to 10
Bumps [actions/stale](https://github.com/actions/stale) from 9 to 10.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9...v10)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '10'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 12:14:28 +00:00
dependabot[bot]
0c2cce90f6
build(deps): bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 12:14:11 +00:00
4 changed files with 18 additions and 5 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@v5 uses: actions/setup-go@v6
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@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'

View file

@ -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.'

View file

@ -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+):