operations_defaults.ts

Production implementations of operations interfaces.

Provides real git, npm, fs, build, and repos operations for production use. For interface definitions and dependency injection pattern, see operations.ts.

view source

Declarations
#

12 declarations

default_build_operations
#

default_changeset_operations
#

default_fs_operations
#

default_git_operations
#

default_gitops_operations
#

operations_defaults.ts view source

GitopsOperations import {default_gitops_operations} from '@fuzdev/fuz_repos/operations_defaults.js';

Combined default operations for all gitops functionality.

default_npm_operations
#

default_preflight_operations
#

default_process_operations
#

default_repos_operations
#

output_tail
#

operations_defaults.ts view source

(text: string, max_lines?: number, max_chars?: number): string import {output_tail} from '@fuzdev/fuz_repos/operations_defaults.js';

The end of a process's output, for a failure message: its last lines, then its last characters, with terminal escape sequences stripped and trailing whitespace trimmed.

text

the output, or as much of its end as was kept

type string

max_lines

the most lines to keep

type number
default OUTPUT_TAIL_MAX_LINES

max_chars

the most characters to keep, applied after max_lines

type number
default OUTPUT_TAIL_MAX_CHARS

returns

string

OUTPUT_TAIL_MAX_CHARS
#

operations_defaults.ts view source

4096 import {OUTPUT_TAIL_MAX_CHARS} from '@fuzdev/fuz_repos/operations_defaults.js';

The most characters of a child's stderr a failure carries.

OUTPUT_TAIL_MAX_LINES
#

operations_defaults.ts view source

20 import {OUTPUT_TAIL_MAX_LINES} from '@fuzdev/fuz_repos/operations_defaults.js';

The most lines of a child's stderr a failure carries.

Depends on
#

Imported by
#