Documentation
¶
Index ¶
- Variables
- func DeclareAtomicDeliverableTableOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclareAtomicProcessTableOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclareBusinessTimeFuncOptions(flags *flag.FlagSet, options *BusinessTimeFuncRawOptions)
- func DeclareCommonOptions(flags *flag.FlagSet, options *CommonRawOptions)
- func DeclareCompositeDeliverableTableOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclareCompositeDeliverableTableOptionsWithFlagNames(shortName string, longName string, flags *flag.FlagSet, shortPath *string, ...)
- func DeclareCompositeProcessTableOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclareConfigOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclareEmphasisTSVOptions(flags *flag.FlagSet, path *string)
- func DeclareExecModelOptions(flags *flag.FlagSet, resourceMode *string, feedbackMode *string)
- func DeclareFSMOptions(flags *flag.FlagSet, options *FSMRawOptions, configLongPath *string, ...)
- func DeclareGroupTableOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclareMilestoneTableOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclarePFDOptions(flags *flag.FlagSet, pfdShortPath *string, pfdLongPath *string)
- func DeclarePFDOptionsWithFlagNames(shortName string, longName string, flags *flag.FlagSet, pfdShortFlag *string, ...)
- func DeclarePlanOutputFormatOptions(flags *flag.FlagSet, options *PlanOutputFormatRawOptions)
- func DeclareResourceTableOptions(flags *flag.FlagSet, shortPath *string, path *string)
- func DeclareSearchOptions(flags *flag.FlagSet, options *SearchRawOptions, randomSeed int64)
- func FSMPrepare(fsmEnvSeed *FSMEnvSeed, locale locale.Locale, logger *slog.Logger) (*fsm.Env, error)
- func NoFlags() *flag.FlagSet
- func ParsePageList(s string) []string
- func PrintUsageHeader(flags *flag.FlagSet, usageLine, shortHelp string)
- func RequireTablePath(flagName string, path string, shortPath string) error
- func ResolveModel(options FSMRawOptions, resourceModeFlag string, feedbackModeFlag string) (execmodel.Model, error)
- func ResolvePath(basePath, path string) string
- func ValidateAtomicDeliverableTableOptions(shortPath *string, path *string, basePath string) (io.Reader, string, error)
- func ValidateAtomicProcessTableOptions(shortPath *string, path *string, basePath string) (io.Reader, string, error)
- func ValidateCompositeDeliverableTableOptions(shortPath *string, path *string, basePath string) (io.Reader, string, error)
- func ValidateCompositeProcessTableOptions(shortPath *string, path *string, basePath string) (io.Reader, string, error)
- func ValidateEmphasisTSVOptions(path string) (*emphasis.Set, error)
- func ValidateFSMEnvSeed(fsmEnvSeed *FSMEnvSeed, logger *slog.Logger, locale locale.Locale) error
- func ValidateGroupTableOptions(shortPath *string, path *string, basePath string) (io.Reader, string, error)
- func ValidateMilestoneTableOptions(shortPath *string, path *string, basePath string) (io.Reader, string, error)
- func ValidatePFDOptions(pfdShortPath *string, pfdLongPath *string, basePath string) (io.Reader, string, error)
- func ValidateResourceTableOptions(shortPath *string, path *string, basePath string) (io.Reader, string, error)
- func ValidateSearchOptions(searchRawOptions *SearchRawOptions) (fsm.SearchFunc, error)
- func ValidateSearchWithPrefixOptions(searchRawOptions *SearchRawOptions) (fsm.SearchWithPrefixFunc, error)
- func WriteFiles(files []FileOutput) error
- func WriteOutput(w io.Writer, destPath string, out []byte) error
- func WriteProjectJSON(w io.Writer, options FSMRawOptions) error
- type BusinessTimeFuncOptions
- type BusinessTimeFuncRawOptions
- type CommonOptions
- type CommonRawOptions
- type FSMEnvSeed
- type FSMOptions
- type FSMRawOptions
- type FileOutput
- type NoticeModule
- type PFDOptions
- type PlanOutputFormat
- type PlanOutputFormatRawOptions
- type ProjectConfig
- type ProjectLayout
- type SearchQualityPreset
- type SearchRawOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PFDShortFlag = "p" PFDLongFlag = "pfd" AtomicProcessTableShortFlag = "ap" AtomicProcessTableLongFlag = "atomic-process" AtomicDeliverableTableShortFlag = "ad" AtomicDeliverableTableLongFlag = "atomic-deliverable" CompositeProcessTableShortFlag = "cp" CompositeProcessTableLongFlag = "composite-process" CompositeDeliverableTableShortFlag = "cd" CompositeDeliverableTableLongFlag = "composite-deliverable" ResourceTableShortFlag = "r" ResourceTableLongFlag = "resource" MilestoneTableShortFlag = "m" MilestoneTableLongFlag = "milestone" GroupTableShortFlag = "g" GroupTableLongFlag = "group" ConfigShortFlag = "f" ConfigLongFlag = "config" ResourceModeFlag = "res" FeedbackModeFlag = "fb" OutFormatFlag = "out-format" EmphasisTSVFlag = "em-tsv" OutDirFlag = "out-dir" InFormatFlag = "in-format" )
Functions ¶
func DeclareBusinessTimeFuncOptions ¶
func DeclareBusinessTimeFuncOptions(flags *flag.FlagSet, options *BusinessTimeFuncRawOptions)
func DeclareCommonOptions ¶
func DeclareCommonOptions(flags *flag.FlagSet, options *CommonRawOptions)
func DeclareConfigOptions ¶
func DeclareExecModelOptions ¶
func DeclareFSMOptions ¶
func DeclareFSMOptions(flags *flag.FlagSet, options *FSMRawOptions, configLongPath *string, configShortPath *string)
func DeclarePFDOptions ¶
func DeclarePlanOutputFormatOptions ¶
func DeclarePlanOutputFormatOptions(flags *flag.FlagSet, options *PlanOutputFormatRawOptions)
func DeclareSearchOptions ¶
func DeclareSearchOptions(flags *flag.FlagSet, options *SearchRawOptions, randomSeed int64)
func FSMPrepare ¶
func ParsePageList ¶
func PrintUsageHeader ¶
func ResolveModel ¶
func ResolvePath ¶
func ValidateFSMEnvSeed ¶
func ValidatePFDOptions ¶
func ValidateSearchOptions ¶
func ValidateSearchOptions(searchRawOptions *SearchRawOptions) (fsm.SearchFunc, error)
func ValidateSearchWithPrefixOptions ¶
func ValidateSearchWithPrefixOptions(searchRawOptions *SearchRawOptions) (fsm.SearchWithPrefixFunc, error)
func WriteFiles ¶
func WriteFiles(files []FileOutput) error
func WriteProjectJSON ¶
func WriteProjectJSON(w io.Writer, options FSMRawOptions) error
Types ¶
type BusinessTimeFuncOptions ¶
type BusinessTimeFuncOptions struct {
StartDay bizday.Day
BusinessTimeFunc bizday.BusinessTimeFunc
Duration time.Duration
}
func ValidateBusinessTimeFuncOptions ¶
func ValidateBusinessTimeFuncOptions(options *BusinessTimeFuncRawOptions) (*BusinessTimeFuncOptions, error)
type CommonOptions ¶
type CommonOptions struct {
Help bool `json:"help"`
ShortHelp bool `json:"short_help"`
Version bool `json:"version"`
LogLevel slog.Level `json:"log_level"`
Logger *slog.Logger `json:"logger"`
Locale locale.Locale `json:"locale"`
}
func ValidateCommonOptions ¶
func ValidateCommonOptions(options *CommonRawOptions) (*CommonOptions, error)
type CommonRawOptions ¶
type FSMEnvSeed ¶
type FSMEnvSeed struct {
PFD *pfd.PFD
AtomicProcessTable *pfd.AtomicProcessTable
AtomicDeliverableTable *pfd.AtomicDeliverableTable
CompositeDeliverableTable *pfd.CompositeDeliverableTable
ResourceTable *fsmtable.ResourceTable
MilestoneTable *fsmtable.MilestoneTable
GroupTable *fsmtable.GroupTable
MaximalAvailableAllocationsThreshold int
Model execmodel.Model
}
func ParseFSMEnvSeed ¶
func ParseFSMEnvSeed(fsOpts *FSMOptions, logger *slog.Logger) (*FSMEnvSeed, error)
type FSMOptions ¶
type FSMOptions struct {
PFDReader io.Reader `json:"-"`
AtomicProcessTableReader io.Reader `json:"-"`
AtomicDeliverableTableReader io.Reader `json:"-"`
CompositeProcessTableReader io.Reader `json:"-"`
CompositeDeliverableTableReader io.Reader `json:"-"`
ResourceTableReader io.Reader `json:"-"`
MilestoneTableReader io.Reader `json:"-"`
GroupTableReader io.Reader `json:"-"`
MaximalAvailableAllocationsThreshold int `json:"maximal_available_allocations_threshold"`
Model execmodel.Model `json:"-"`
}
func ValidateAllFSMOptions ¶
func ValidateAllFSMOptions(options *FSMRawOptions, basePath string) (*FSMOptions, error)
func ValidatePossibleFSMOptions ¶
func ValidatePossibleFSMOptions(options *FSMRawOptions, basePath string) (*FSMOptions, error)
type FSMRawOptions ¶
type FSMRawOptions struct {
PFDPath string `json:"pfd,omitempty"`
ShortPFDPath string `json:"-"`
AtomicProcessTablePath string `json:"atomic_process_table,omitempty"`
ShortAtomicProcessTablePath string `json:"-"`
AtomicDeliverableTablePath string `json:"atomic_deliverable_table,omitempty"`
ShortAtomicDeliverableTablePath string `json:"-"`
CompositeProcessTablePath string `json:"composite_process_table,omitempty"`
ShortCompositeProcessTablePath string `json:"-"`
CompositeDeliverableTablePath string `json:"composite_deliverable_table,omitempty"`
ShortCompositeDeliverableTablePath string `json:"-"`
ResourceTablePath string `json:"resource_table,omitempty"`
ShortResourceTablePath string `json:"-"`
MilestoneTablePath string `json:"milestone_table,omitempty"`
ShortMilestoneTablePath string `json:"-"`
GroupTablePath string `json:"group_table,omitempty"`
ShortGroupTablePath string `json:"-"`
MaximalAvailableAllocationsThreshold int `json:"maximal_available_allocations_threshold,omitempty"`
ResourceMode string `json:"resource_mode,omitempty"`
FeedbackMode string `json:"feedback_mode,omitempty"`
}
func ReadFSMRawOptions ¶
func ReadFSMRawOptions(configShortPath *string, configLongPath *string, cliOptions FSMRawOptions, cwd string) (FSMRawOptions, string, error)
func (FSMRawOptions) Absolutize ¶
func (options FSMRawOptions) Absolutize(basePath string) FSMRawOptions
type FileOutput ¶
func BuildFileOutput ¶
type NoticeModule ¶
func MissingNoticeModules ¶
func MissingNoticeModules(modules []NoticeModule, notices string) []NoticeModule
func ParseModuleList ¶
func ParseModuleList(output string) []NoticeModule
type PFDOptions ¶
type PlanOutputFormat ¶
type PlanOutputFormat string
const ( PlanOutputFormatGoogleSpreadsheetTSV PlanOutputFormat = "google-spreadsheet-tsv" PlanOutputFormatPlanJSON PlanOutputFormat = "plan-json" PlanOutputFormatTimelineJSON PlanOutputFormat = "timeline-json" PlanOutputFormatMermaid PlanOutputFormat = "mermaid" PlanOutputFormatPlantUML PlanOutputFormat = "plantuml" )
func ValidatePlanOutputFormat ¶
func ValidatePlanOutputFormat(options *PlanOutputFormatRawOptions, config ProjectConfig, logger *slog.Logger) (fsmreporter.PlanReporter, PlanOutputFormat, error)
type PlanOutputFormatRawOptions ¶
type PlanOutputFormatRawOptions struct {
OutputFormat string `json:"output_format,omitempty"`
EmphasisTSVPath string `json:"emphasis_tsv_path,omitempty"`
BusinessTimeFuncRawOptions
}
type ProjectConfig ¶
type ProjectConfig struct {
FSMRawOptions
PlanOutputFormatRawOptions
PlanPath string `json:"plan,omitempty"`
ExplicitBusinessTimeFlags []string `json:"-"`
ExplicitEmphasisTSVFlag bool `json:"-"`
}
func ReadProjectConfig ¶
func ReadProjectConfig( configShortPath *string, configLongPath *string, cliFSMOptions FSMRawOptions, cliPlanOutputOptions PlanOutputFormatRawOptions, cwd string, flags *flag.FlagSet, ) (ProjectConfig, string, error)
type ProjectLayout ¶
type ProjectLayout struct {
PFDPath string
AtomicProcessTable string
AtomicDeliverableTable string
CompositeDeliverableTable string
ResourceTable string
MilestoneTable string
GroupTable string
}
func DefaultProjectLayout ¶
func DefaultProjectLayout(pfdPath string) ProjectLayout
func (ProjectLayout) FSMRawOptions ¶
func (l ProjectLayout) FSMRawOptions(model execmodel.Model) FSMRawOptions
type SearchQualityPreset ¶
type SearchQualityPreset string
const ( SearchQualityPresetSmall SearchQualityPreset = "s" SearchQualityPresetMedium SearchQualityPreset = "m" SearchQualityPresetLarge SearchQualityPreset = "l" SearchQualityPresetXLarge SearchQualityPreset = "xl" SearchQualityPresetXXLarge SearchQualityPreset = "xxl" SearchQualityPresetCustom SearchQualityPreset = "custom" SearchQualityPresetDefault SearchQualityPreset = "default" )
func (SearchQualityPreset) Quality ¶
func (q SearchQualityPreset) Quality(randomSeed int64) fsm.Quality
func (SearchQualityPreset) String ¶
func (q SearchQualityPreset) String() string
Directories
¶
| Path | Synopsis |
|---|---|
|
debug
|
|
|
pfddeadlock
command
|
|
|
pfddot
command
|
|
|
pfdparse
command
|
|
|
pfdrun
command
|
|
|
pfdrungraph
command
|
|
Click to show internal directories.
Click to hide internal directories.