cctally 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ # Thin wrapper: `cctally-alerts` → `cctally alerts`.
3
+ # Mirrors the per-subcommand wrapper pattern (`cctally-forecast`,
4
+ # `cctally-project`, etc.).
5
+ set -euo pipefail
6
+ exec "$(dirname "$0")/cctally" alerts "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ # Wrapper that forwards to `cctally dashboard`.
3
+ # Keeps CLI ergonomics in line with cctally-tui / cctally-forecast.
4
+ exec "$(dirname "$0")/cctally" dashboard "$@"
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec "$(dirname "$0")/cctally" report --sync-current "$@"
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec "$(dirname "$0")/cctally" five-hour-blocks "$@"
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec "$(dirname "$0")/cctally" five-hour-breakdown "$@"
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ # Thin wrapper: `cctally-forecast` → `cctally forecast`.
3
+ # Mirrors `cctally-dollar-per-percent` / `cctally-sync-week` pattern.
4
+ set -euo pipefail
5
+ exec "$(dirname "$0")/cctally" forecast "$@"
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { spawnSync } = require('child_process');
5
+ const path = require('path');
6
+ const fs = require('fs');
7
+
8
+ const platform = process.env.CCTALLY_NPM_SHIM_TEST_PLATFORM || process.platform;
9
+ if (platform === 'win32') {
10
+ console.error('cctally: Windows is not supported. Use macOS or Linux.');
11
+ process.exit(1);
12
+ }
13
+
14
+ const scriptPath = path.join(__dirname, 'cctally');
15
+ if (!fs.existsSync(scriptPath)) {
16
+ console.error(`cctally: bundled script not found at ${scriptPath}`);
17
+ process.exit(1);
18
+ }
19
+
20
+ const python = process.env.CCTALLY_PYTHON || 'python3';
21
+ const result = spawnSync(python, [scriptPath, ...process.argv.slice(2)], {
22
+ stdio: 'inherit',
23
+ });
24
+
25
+ if (result.error) {
26
+ if (result.error.code === 'ENOENT') {
27
+ console.error(
28
+ `cctally: cannot find ${python}. Install Python 3.13+ ` +
29
+ 'or set CCTALLY_PYTHON to its path.'
30
+ );
31
+ process.exit(1);
32
+ }
33
+ console.error(`cctally: ${result.error.message}`);
34
+ process.exit(1);
35
+ }
36
+
37
+ process.exit(result.status === null ? 1 : result.status);
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ # Thin wrapper: `cctally-project` → `cctally project`.
3
+ # Mirrors `cctally-forecast` / `cctally-dollar-per-percent` pattern.
4
+ set -euo pipefail
5
+ exec "$(dirname "$0")/cctally" project "$@"
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec "$(dirname "$0")/cctally" refresh-usage "$@"
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+ # Wrapper that forwards to `cctally release`.
3
+ exec "$(dirname "$0")/cctally" release "$@"
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec "$(dirname "$0")/cctally" sync-week "$@"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ # Thin wrapper for `cctally tui`.
3
+ DIR=$(cd "$(dirname "$0")" && pwd)
4
+ exec "$DIR/cctally" tui "$@"