Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need simple function for updating plugins #11

Closed
ChristianChiarulli opened this issue Nov 9, 2022 · 2 comments
Closed

need simple function for updating plugins #11

ChristianChiarulli opened this issue Nov 9, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ChristianChiarulli
Copy link
Member

No description provided.

@Pheon-Dev
Copy link
Contributor

Pheon-Dev commented Nov 9, 2022

What about creating a zap function and a --help flag to show zap options such as:

# From the CLI
$ zap update plugin_name
$ zap update all
$ zap delete plugin_name
$ zap pause plugin_name
$ zap source plugin_name
$ zap ...

Then have this added to the zap script

# zap function that takes one or two arguments 

function zap() {
  if [ -f $1 ]; then
    case $1 in
      update)    git pull https://github.com/$2    ;;
      delete)    rm -rf ~/.local/share/zap/plugins/$1    ;;
...
...
      *)            echo "'$1' cannot be found in zap plugins" ;;
    esac
  else
    echo "'$1' is not a valid plugin"
  fi
}

@Pheon-Dev
Copy link
Contributor

Check #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants