cli

package
v0.0.0-...-466d959 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is set at build time
	Version = "dev"
)

Functions

func Execute

func Execute()

Execute runs the root command coverage-ignore: CLI entry point - tested via integration tests

Types

type ExportEntity

type ExportEntity struct {
	ID         string                 `json:"id" yaml:"id"`
	Type       string                 `json:"type" yaml:"type"`
	Properties map[string]interface{} `json:"properties,omitempty" yaml:"properties,omitempty"`
	Relations  *ExportRelations       `json:"relations,omitempty" yaml:"relations,omitempty"`
}

ExportEntity represents an entity for export with optional relation data

type ExportRelation

type ExportRelation struct {
	From       string                 `json:"from" yaml:"from"`
	Relation   string                 `json:"relation" yaml:"relation"`
	To         string                 `json:"to" yaml:"to"`
	Properties map[string]interface{} `json:"properties,omitempty" yaml:"properties,omitempty"`
}

ExportRelation represents a relation for export

type ExportRelations

type ExportRelations struct {
	Outgoing map[string][]RelationTarget `json:"outgoing,omitempty" yaml:"outgoing,omitempty"`
	Incoming map[string][]RelationTarget `json:"incoming,omitempty" yaml:"incoming,omitempty"`
}

ExportRelations contains relation data grouped by relation type

type FullExport

type FullExport struct {
	Entities  []ExportEntity   `json:"entities" yaml:"entities"`
	Relations []ExportRelation `json:"relations" yaml:"relations"`
}

FullExport represents the complete export of all entities and relations

type RelationTarget

type RelationTarget struct {
	ID    string `json:"id" yaml:"id"`
	Title string `json:"title,omitempty" yaml:"title,omitempty"`
}

RelationTarget represents a related entity

Jump to

Keyboard shortcuts

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