diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-04-27 22:16:12 -0400 |
|---|---|---|
| committer | bdunahu <bdunahu@operationnull.com> | 2026-04-28 00:15:09 -0400 |
| commit | 9e143d1d84817ec7e6d139d234f0fff07749621c (patch) | |
| tree | 7565eac131cc3528d33d5ea3597cdd8006fdb968 /kenku | |
Diffstat (limited to 'kenku')
| -rwxr-xr-x | kenku | 64 |
1 files changed, 64 insertions, 0 deletions
@@ -0,0 +1,64 @@ +#!/run/current-system/profile/bin/guile \ +-L . +!# +;; kenku --- crawl and reproduce github actions +;; Copyright © 2026 bdunahu <bdunahu@operationnull.com> +;; +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <https://www.gnu.org/licenses/>. + +(use-modules (ice-9 match) + ((src poll-repos) #:prefix poll:) + ((src crawl-actions-wrapper) #:prefix get-act:) + ((src crawl-newest-commits) #:prefix new-commit:) + ((src crawl-type-wrapper) #:prefix get-type:) + ((src crawl-lockfiles) #:prefix get-lock:) + ((src build-actions) #:prefix build:)) + +(define (main . args) + (match args + (("poll" . args) + (poll:poll-repos)) + (("crawl" . args) + (get-act:crawl-actions)) + (("commits" . args) + (new-commit:crawl-commits)) + (("types" . args) + (get-type:crawl-types)) + (("lock" . args) + (get-lock:crawl-lockfiles)) + (("build" . args) + (build:build-actions)) + (anything + (format (current-error-port) + "Usage: kenku <command> + +Commands: + poll + write a bunch of github repos to cache + crawl + write the referenced workflows from each polled repo + commits + get the newest commits of each referenced action + types + get the types of the newest referenced actions + lock + get the package manager used by each node action + build + build all npm actions in a container~%")))) + +(apply main (cdr (command-line))) + +;; Local Variables: +;; mode: scheme +;; End: |
