babarot / afx

📦 Package manager for CLI
https://babarot.me/afx/
MIT License
148 stars 6 forks source link

Add package dependency #17

Closed babarot closed 2 years ago

babarot commented 2 years ago

WHAT

Add package dependency like:

local:
- name: zsh
  directory: ~/.zsh
  plugin:
    if: |
      [[ $SHELL == *zsh* ]]
    sources:
    - '[0-9]*.zsh'
  depends-on:
  - google-cloud-sdk
- name: google-cloud-sdk
  directory: ~/Downloads/google-cloud-sdk
  plugin:
    env:
      PATH: ~/Downloads/google-cloud-sdk/bin
    sources:
    - '*.zsh.inc'
2022/02/17 23:41:49 [DEBUG] dependency graph is here:
* zsh -> google-cloud-sdk

WHY

Some packages needs to take care about the order of loading. It's dependencies between packages. So added package dependency logic based on a graph theory.

github-actions[bot] commented 2 years ago

This PR will update b4b4r07/afx from v0.1.6 to v0.1.7 :rocket:

Changes: https://github.com/b4b4r07/afx/compare/v0.1.6...feature/dependency

If this update isn't as you expected, you may want to change or remove the release label.

github-actions[bot] commented 2 years ago

The new version v0.1.7 has been released :tada:

Changes: https://github.com/b4b4r07/afx/compare/v0.1.6...v0.1.7