### ----------------------------------------------------
### -- SparrowCI
### -- Licenses: Artistic-2.0
### -- Authors: Alexey Melezhik
### -- File: examples/go/task.yaml
### ----------------------------------------------------
tasks:
  -
    name: main
    default: true
    language: Raku
    code: |
      say config()<tasks><go-task><state><Message>
    depends:
      -
        name: go-task
        config:
          Message: Hello from Raku
  -
    name: go-task
    language: Go
    code: |
      package main

      import (
        "fmt"
        "github.com/melezhik/sparrowgo"
      )

      func main() {

        // sparrowgo.DebugOn()

        type Params struct {
          Message string
        }

        type Message struct {
          Message string
        }

        var params Params

        sparrowgo.Config(&params)

        fmt.Printf("Sparrow says: %s\n", params.Message)

        switch sparrowgo.Os() {
          case "darwin":
            fmt.Println("hello Mac")
          case "arch":
            fmt.Println("hello Arch Linux")
          case "debian":
            fmt.Println("hello Debian")
          // so on
        }

        sparrowgo.UpdateState(&Message{Message : "Hello from Go"})

      }
    


