feat(ci): lint skills, refs and installer drift (#15)
ci / nix (push) Successful in 8s
ci / lint (push) Successful in 10s

This commit was merged in pull request #15.
This commit is contained in:
2026-08-20 14:23:19 +01:00
parent cf5518227e
commit 2f092f9ee0
8 changed files with 442 additions and 6 deletions
+7 -5
View File
@@ -19,6 +19,7 @@ Commands:
Every write takes --dry-run, which prints the exact request and sends nothing.
"""
import argparse
import json
import os
@@ -27,6 +28,7 @@ import urllib.error
import urllib.parse
import urllib.request
def request(method, path, body=None, dry=False):
api = os.environ.get("HOURLOG_API")
if not api:
@@ -85,13 +87,13 @@ def main():
c.add_argument("--hours", required=True, help="decimal hours, e.g. 4 or 7.5")
c.add_argument("--dry-run", action="store_true")
l = sub.add_parser("log")
g = l.add_mutually_exclusive_group(required=True)
log_p = sub.add_parser("log")
g = log_p.add_mutually_exclusive_group(required=True)
g.add_argument("--project", help="project id")
g.add_argument("--category", help="investment category id")
l.add_argument("--dates", required=True, help="comma-separated YYYY-MM-DD")
l.add_argument("--hours", required=True, help="decimal hours per day")
l.add_argument("--dry-run", action="store_true")
log_p.add_argument("--dates", required=True, help="comma-separated YYYY-MM-DD")
log_p.add_argument("--hours", required=True, help="decimal hours per day")
log_p.add_argument("--dry-run", action="store_true")
r = sub.add_parser("raw")
r.add_argument("method")