Git Product home page Git Product logo

fzf-gcloud's People

Contributors

farzadmf avatar mbhynes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fzf-gcloud's Issues

Could not find a valid gcloud docs folder at: '/usr/bin/gcloud'.

I couldn't set up the SQLite cache and kept getting Could not find a valid gcloud docs folder at: '/usr/bin/gcloud'. error. Looking a little bit I've found that the variable gcloud_docs_root has been set to the wrong path. Google must have updated the path to /usr/lib/google-cloud-sdk/lib/surface recently, so hard setting it to this path did the trick.

Suggestion: use a key binding other than CTRL+P

As you probably know, CTRL, P is a "known" keybinding in the shell (brings up the previous command).

I think it's better to default to another keybinding. A keybinding that comes to my mind is CTRL, G (G for gcloud)

I created a PR to change it to CTRL, G instead; let me know what you think

__fzfcmd not found

you need to install the fzf key bindings and fuzzy completions, as well as basic fzf or the __fzfcmd isnt installed.

To install useful key bindings and fuzzy completion:

$(brew --prefix)/opt/fzf/install

Error building cache

Hi,

I've installed the script, but it seems to have issues when building the cache:

mktemp: too few X's in template ‘.fzf-gcloud-cmd_cache.db’
Rebuilding gcloud command cache in '/home/farzad/.fzf-gcloud-cmd_cache.db'
Adding invocation for 'gcloud alpha transfer' (build from /opt/google-cloud-sdk/lib/surface/transfer/__init__.py)
Error: no such table: GCLOUD_CMD_CACHE
Adding invocation for 'gcloud transfer operations monitor' (build from /opt/google-cloud-sdk/lib/surface/transfer/operations/monitor.py)
Error: no such table: GCLOUD_CMD_CACHE
...

And the error appears for every single line saying Adding invocation ...

YAML-defined commands do not appear in the fzf list

Summary

There are gcloud commands defined in YAML files (not *.py) that do not show up in the autocompletion list.

Example files related to the gcloud api for bq that do not appear in the completion:

find $GCLOUD_PATH/lib/surface/bq/tables
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/delete.yaml
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/__init__.py
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/copy.py
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/__pycache__
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/__pycache__/__init__.cpython-39.pyc
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/__pycache__/copy.cpython-39.pyc
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/show_rows.yaml
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/describe.yaml
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/list.yaml
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/create.yaml
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/insert.yaml
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/lib/surface/bq/tables/update.yaml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.