Add project tracking picker

This commit is contained in:
Martin
2026-02-03 20:59:47 +01:00
parent 1ffcf42773
commit 474bb3dc07
4 changed files with 31 additions and 2 deletions

View File

@ -147,7 +147,7 @@ func (ts *TaskSquire) GetTasks(report *Report, filter ...string) Tasks {
args := ts.defaultArgs
if report.Context {
if report != nil && report.Context {
for _, context := range ts.contexts {
if context.Active && context.Name != "none" {
args = append(args, context.ReadFilter)
@ -161,7 +161,7 @@ func (ts *TaskSquire) GetTasks(report *Report, filter ...string) Tasks {
}
exportArgs := []string{"export"}
if report.Name != "" {
if report != nil && report.Name != "" {
exportArgs = append(exportArgs, report.Name)
}