jahvon / flow

Interactive CLI automation that flows with you.
http://flowexec.io/
Apache License 2.0
55 stars 3 forks source link

Collapse `type` exec definition field #64

Closed jahvon closed 8 months ago

jahvon commented 9 months ago

Enhancement Summary

The type key is kind of unnecessary. An exec defined as:

  - verb: setup
    name: drive-mount
    tags:
      - linux
    description: Mount a drive on the local machine
    spec:
      type:
        exec:
          file: //scripts/mount-drive.sh

Can be simplified to

  - verb: setup
    name: drive-mount
    tags:
      - linux
    description: Mount a drive on the local machine
    spec:
      exec:
        file: //scripts/mount-drive.sh

Better yet, if spec can be dropped, that would simplify things even more

  - verb: setup
    name: drive-mount
    tags:
      - linux
    description: Mount a drive on the local machine
    exec:
      file: //scripts/mount-drive.sh

Additional context

Need to play around with yaml tags and structs

jahvon commented 8 months ago

This has been fixed. Config is slightly different but no longer an issue