@calltelemetry/fmix 2.7.5 → 2.7.6
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.
- package/bin/fmix +25 -5
- package/package.json +3 -3
package/bin/fmix
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# ./fmix test [--worktree <path>] [--session <id>] [--isolate] [--cache-base <N.N.N-stable>] [--unit] -- <mix test args>
|
|
7
7
|
# ./fmix coverage --worktree <path> [--session <id>] --base <git-ref> -- <test paths>
|
|
8
8
|
# ./fmix task [--worktree <path>] [--session <id>] [--database <name>] [--mix-env <env>] [--allow-run] -- <mix task> [args]
|
|
9
|
-
# ./fmix format [--worktree <path>] [--session <id>] [--mix-env <env>] [--check] -- <files...>
|
|
9
|
+
# ./fmix format [--worktree <path>] [--session <id>] [--mix-env <env>] [--dot-formatter <path>] [--check] -- <files...>
|
|
10
10
|
# ./fmix setup [--worktree <path>] [--session <id>] [--rebuild-db|--cold-db|--from-zero]
|
|
11
11
|
# ./fmix seed publish --worktree <path> [--session <id>] --cache-base <N.N.N-stable>
|
|
12
12
|
# ./fmix cache explain --worktree <path> --cache-base <N.N.N-stable>
|
|
@@ -24,7 +24,7 @@ set -uo pipefail
|
|
|
24
24
|
# ---------------------------------------------------------------------------
|
|
25
25
|
# Constants & config
|
|
26
26
|
# ---------------------------------------------------------------------------
|
|
27
|
-
FMIX_VERSION="2.7.
|
|
27
|
+
FMIX_VERSION="2.7.6"
|
|
28
28
|
FMIX_HOME="${FMIX_HOME:-${HOME}/.ct-fmix}"
|
|
29
29
|
FMIX_OS="$(uname -s)"
|
|
30
30
|
FMIX_ARCH="$(uname -m)"
|
|
@@ -11156,6 +11156,7 @@ cmd_format() {
|
|
|
11156
11156
|
local worktree_arg="auto"
|
|
11157
11157
|
local session_arg=""
|
|
11158
11158
|
local mix_env_arg="test"
|
|
11159
|
+
local dot_formatter_arg=""
|
|
11159
11160
|
local check_only=0
|
|
11160
11161
|
local found_sep=0
|
|
11161
11162
|
local -a fmt_args=()
|
|
@@ -11179,10 +11180,16 @@ cmd_format() {
|
|
|
11179
11180
|
shift 2
|
|
11180
11181
|
;;
|
|
11181
11182
|
--mix-env=*) mix_env_arg="${1#--mix-env=}"; shift ;;
|
|
11183
|
+
--dot-formatter)
|
|
11184
|
+
[[ $# -ge 2 ]] || { fmix_error "--dot-formatter requires a path argument."; return 2; }
|
|
11185
|
+
dot_formatter_arg="$2"
|
|
11186
|
+
shift 2
|
|
11187
|
+
;;
|
|
11188
|
+
--dot-formatter=*) dot_formatter_arg="${1#--dot-formatter=}"; shift ;;
|
|
11182
11189
|
--check) check_only=1; shift ;;
|
|
11183
11190
|
--) found_sep=1; shift; break ;;
|
|
11184
11191
|
*)
|
|
11185
|
-
fmix_error "Unknown option: $1. Usage: fmix format [--worktree <path>] [--session <id>] [--mix-env <env>] [--check] -- <files...>"
|
|
11192
|
+
fmix_error "Unknown option: $1. Usage: fmix format [--worktree <path>] [--session <id>] [--mix-env <env>] [--dot-formatter <path>] [--check] -- <files...>"
|
|
11186
11193
|
return 2
|
|
11187
11194
|
;;
|
|
11188
11195
|
esac
|
|
@@ -11240,6 +11247,14 @@ cmd_format() {
|
|
|
11240
11247
|
if (( check_only == 1 )); then
|
|
11241
11248
|
mix_cmd+=(--check-formatted)
|
|
11242
11249
|
fi
|
|
11250
|
+
# Formatter-configuration scopes: repos with `subdirectories` entries in
|
|
11251
|
+
# .formatter.exs (e.g. Ecto migrations under priv/*/migrations) format
|
|
11252
|
+
# those files with a different import_deps/locals_without_parens set than
|
|
11253
|
+
# the root config. --dot-formatter selects that config explicitly while
|
|
11254
|
+
# deps still resolve from the project root.
|
|
11255
|
+
if [[ -n "$dot_formatter_arg" ]]; then
|
|
11256
|
+
mix_cmd+=(--dot-formatter "$dot_formatter_arg")
|
|
11257
|
+
fi
|
|
11243
11258
|
mix_cmd+=("${fmt_args[@]}")
|
|
11244
11259
|
|
|
11245
11260
|
local fmt_rc=0
|
|
@@ -17039,7 +17054,7 @@ fmix format - format Elixir sources with the exact pinned toolchain.
|
|
|
17039
17054
|
|
|
17040
17055
|
Usage:
|
|
17041
17056
|
fmix format [--worktree <path>] [--session <id>] [--mix-env <env>]
|
|
17042
|
-
[--check] -- <files...>
|
|
17057
|
+
[--dot-formatter <path>] [--check] -- <files...>
|
|
17043
17058
|
|
|
17044
17059
|
Notes:
|
|
17045
17060
|
Uses the repo's .tool-versions pin and the same session deps/_build as
|
|
@@ -17047,12 +17062,17 @@ Notes:
|
|
|
17047
17062
|
way CI compiles them. Never uses an ambient mise/asdf/global Elixir, which
|
|
17048
17063
|
can silently rewrite unrelated hunks when its version differs from the
|
|
17049
17064
|
pin. --check is read-only (--check-formatted) for CI and pre-push gates.
|
|
17065
|
+
--dot-formatter <path> formats the passed files with a specific formatter
|
|
17066
|
+
configuration (e.g. priv/repo/migrations/.formatter.exs) while deps still
|
|
17067
|
+
resolve from the project root — the equivalent of the `subdirectories`
|
|
17068
|
+
entries in a root .formatter.exs.
|
|
17050
17069
|
Formatting is DB-free: no database is provisioned or contacted.
|
|
17051
17070
|
|
|
17052
17071
|
Examples:
|
|
17053
17072
|
fmix format --worktree ./cisco-cdr -- lib/cdrcisco/pipeline_data.ex
|
|
17054
17073
|
fmix format -- lib/**/*.ex
|
|
17055
17074
|
fmix format --check -- lib/cdrcisco/pipeline_data.ex
|
|
17075
|
+
fmix format --dot-formatter priv/repo/migrations/.formatter.exs -- priv/repo/migrations/*.exs
|
|
17056
17076
|
VERB
|
|
17057
17077
|
;;
|
|
17058
17078
|
setup)
|
|
@@ -17178,7 +17198,7 @@ Usage:
|
|
|
17178
17198
|
./fmix test [--worktree <path>] [--session <id>] [--cache-base <N.N.N-stable>] [--event-fd <fd>] [--unit] -- <mix test args>
|
|
17179
17199
|
./fmix coverage [--worktree <path>] [--session <id>] --base <git-ref> [--source <lib/**/*.ex>] [--threshold 80] -- <test paths>
|
|
17180
17200
|
./fmix task [--worktree <path>] [--session <id>] [--database <name>] [--mix-env <env>] [--allow-run] -- <mix task> [args]
|
|
17181
|
-
./fmix format [--worktree <path>] [--session <id>] [--mix-env <env>] [--check] -- <files...>
|
|
17201
|
+
./fmix format [--worktree <path>] [--session <id>] [--mix-env <env>] [--dot-formatter <path>] [--check] -- <files...>
|
|
17182
17202
|
./fmix setup [--worktree <path>] [--session <id>] [--rebuild-db|--cold-db|--from-zero]
|
|
17183
17203
|
./fmix seed publish --worktree <path> [--session <id>] --cache-base <N.N.N-stable>
|
|
17184
17204
|
./fmix cache explain --worktree <path> --cache-base <N.N.N-stable>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calltelemetry/fmix",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.6",
|
|
4
4
|
"description": "Verified native FMix runner for CallTelemetry workspaces",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"directory": "packages/npm"
|
|
27
27
|
},
|
|
28
28
|
"fmix": {
|
|
29
|
-
"runnerSha256": "
|
|
30
|
-
"sourceTag": "fmix-v2.7.
|
|
29
|
+
"runnerSha256": "0c6ea7a977b0748c46f2aca082a398bc642ccbb07da2c29d14649144494b2388",
|
|
30
|
+
"sourceTag": "fmix-v2.7.6"
|
|
31
31
|
}
|
|
32
32
|
}
|