sync

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package sync defines constants for the ctx sync command, including config file detection patterns.

Index

Constants

View Source
const (
	PatternEslint     = ".eslintrc*"
	PatternPrettier   = ".prettierrc*"
	PatternTSConfig   = "tsconfig.json"
	PatternEditorConf = ".editorconfig"
	PatternMakefile   = "Makefile"
	PatternDockerfile = "Dockerfile"
)

Config file glob patterns checked by ctx sync.

View Source
const (
	ActionDeps   = "DEPS"
	ActionConfig = "CONFIG"
	ActionNewDir = "NEW_DIR"
)

Action type constants for sync check results.

View Source
const KeywordDependencies = "dependencies"

KeywordDependencies is the search keyword for dependency documentation.

Variables

View Source
var ImportantDirs = map[string]bool{
	"api": true, "app": true, "cmd": true, "components": true,
	"internal": true, "lib": true, "pkg": true, "services": true,
	"src": true, "web": true,
}

ImportantDirs lists top-level directories that should be documented in ARCHITECTURE.md.

View Source
var SkipDirs = map[string]bool{
	"build": true, "dist": true, "node_modules": true, "vendor": true,
}

SkipDirs lists directories excluded from sync directory scanning.

Functions

func Patterns

func Patterns() []string

Patterns returns all config file glob patterns in detection order.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL