mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
fix(includes): propagate silent mode from included Taskfiles to tasks (#2640)
This commit is contained in:
@@ -10,6 +10,15 @@ type Copier[T any] interface {
|
||||
DeepCopy() T
|
||||
}
|
||||
|
||||
func Scalar[T any](orig *T) *T {
|
||||
if orig == nil {
|
||||
return nil
|
||||
} else {
|
||||
v := *orig
|
||||
return &v
|
||||
}
|
||||
}
|
||||
|
||||
func Slice[T any](orig []T) []T {
|
||||
if orig == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user