treeflow 0.2.1

CLI tool for simplified Git worktree management to speed up switching contexts when working collaboratively.
Documentation
# Function to handle treeflow commands in zsh
function treeflow() {
  local treeflow_path
  local output
  local code

  treeflow_path="::treeflow_path::"
  output=$($treeflow_path "$@")
  code=$?

  # Success, check output prefix to determine behavior
  if [ $code -eq 0 ]; then
      # Check for Cd> prefix - extract directory and change to it
      if [ -n "$output" ] && printf '%s' "$output" | grep -q '^Cd> '; then
          local dir
          dir=$(printf '%s' "$output" | sed -n 's/^Cd> \(.*\)$/\1/p')
          cd "$dir"
          return 0
      fi

      printf '%s\n' "$output"
      return 0
  fi

  return $code
}