Skip to content

How to remove the need for include prefixes ? #2182

Closed Answered by joeblew999
joeblew999 asked this question in Q&A
Discussion options

You must be logged in to vote

I worked it out and it works really well.

Task is really starting to pay off for me.

# yaml-language-server: $schema=https://taskfile.dev/schema.json

version: '3'

# MUST have this ONLY in root for env variables to work.
dotenv: ['.env', '{{.ENV}}/.env', '{{.HOME}}/.env']

includes:
  # Pick if you want local or remote task file loading.
  # https://taskfile.dev/usage/#flatten-includes makes it all the same either way.
  local: 
    taskfile: ./../../../remote-taskfile.yml
    flatten: true
  #remote: 
  #  taskfile: https://raw.githubusercontent.com/joeblew999/pb-stack/refs/heads/main/remote-taskfile.yml
  #  flatten: true

vars:
  # MUST have this to work. Maybe can discover it later i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joeblew999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant