Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func (pbs *pbstate) showSelectedInclusion(selection string) {

backupTypes, backupInclusions := pbs.types237, pbs.inclusions
pbs.types237, pbs.inclusions = types, inclusions
pbs.showInclusion(false, true)
pbs.showInclusion(*g_cluster, true)
pbs.types237, pbs.inclusions = backupTypes, backupInclusions
}

Expand Down Expand Up @@ -1331,7 +1331,7 @@ func process(pbs *pbstate, name string, selection string) bool {
pbs.showSelectedInclusion(selection)
}
} else {
pbs.showInclusion(true, true)
pbs.showInclusion(*g_cluster, true)
}

} else {
Expand Down Expand Up @@ -1395,13 +1395,15 @@ func applyToAllFilesFromList(listfilename string, selection string) {
const configDefaultName = "config.json"

var (
g_cluster = flag.Bool("cluster", true, "Cluster elements from the same package together")

g_action = flag.String("action", "", "Custom action to run upon completion (overwrites config.locations.action)")
g_configPath = flag.String("config", configDefaultName, "Location and name of the configuration file")
g_grpc = flag.String("grpc", "", "Port to listen, e.g. :50051")
g_logPath = flag.String("log", "", "Location and name of the debug log file")
g_source = flag.String("src", "", "Location and name of the source file (required)")
g_selection = flag.String("select", "", "Name(s) of the selected elements")
g_output = flag.String("output", "", "Name of the output file")
g_grpc = flag.String("grpc", "", "Port to listen, e.g. :50051")
g_action = flag.String("action", "", "custom action to run upon completion (overwrites config.locations.action)")
g_selection = flag.String("select", "", "Name(s) of the selected elements")
g_source = flag.String("src", "", "Location and name of the source file (required)")
)

//======================================================================================================================
Expand Down