Git Product home page Git Product logo

okcli's People

Contributors

amjith avatar bjarnagin avatar borman avatar brewneaux avatar cboddy avatar chainkite avatar cxbig avatar danieljwest avatar darikg avatar fpietka avatar gitter-badger avatar grooverdan avatar heathnaylor avatar j-bennet avatar jonathanslenders avatar kwuenschel avatar langemeijer avatar mattn avatar meeuw avatar mgorny avatar phillco avatar scrappysoft avatar shoma avatar spacewander avatar steverobbins avatar tanzoniteblack avatar terseus avatar tkuipers avatar tsroten avatar zer09 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

okcli's Issues

format parameter on .okclirc

I tried to put format=simpleon ~/.okclirc but it did not work. Also tried to use the color parameter there but it did not work either. How can I use them?

Completions caching

The oracle databases I currently work with unfortunately have a ton of namespaces and tables.
This results in "Refreshing completions" for around a minute every time I start okcli.

I've talked a bit with @icepuma about this issue and we had the idea to add optional completion caching to okcli.
It could work like this:

  • entirely opt-in and set by command line flag (eG --enable-completions-cache or similar)
  • if enabled, the completions are serialized into the XDG_CACHE_DIR
  • if enabled and there is a completions dump at start, deserialize from file instead of asking the DB
  • if disabled, nothing changes

The cache would be per-connection, for example after hashing the connection string.
I don't have any particular preference regarding cache invalidation, maybe simply removing the file manually would be good enough for a first start, or a --force-invalidate-cache option (slightly better especially if the file name is a hash).

A slightly easier variation to avoid dealing with XDG would be to simply support --completion-cache <path> so the user can decide if and when to delete the file. But it also introduces the potential mistake of using a completion cache for a different connection which would be confusing.

What are your thoughts on this and would you accept a pull request implementing this?

Dependencies issue?

$ sudo pip install okcli
$ okcli
Traceback (most recent call last):
File "/usr/local/bin/okcli", line 5, in
from okcli.main import cli
File "/usr/local/lib/python3.10/dist-packages/okcli/main.py", line 20, in
from cli_helpers.tabular_output import TabularOutputFormatter
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/tabular_output/init.py", line 11, in
from .output_formatter import format_output, TabularOutputFormatter
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/tabular_output/output_formatter.py", line 10, in
from . import (delimited_output_adapter, vertical_table_adapter,
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/tabular_output/tabulate_adapter.py", line 4, in
from cli_helpers.packages import tabulate
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/packages/tabulate.py", line 6, in
from collections import namedtuple, Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/init.py)

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.