GithubHelp home page GithubHelp logo

clir's People

Contributors

croketillo avatar elkinaguas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

croketillo

clir's Issues

ERROR

Trying save a new comand:

Traceback (most recent call last):
File "/home/XXXX/.local/bin/clir", line 8, in
sys.exit(cli())
File "/home/xxx/.local/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/xxxx/.local/lib/python3.10/site-packages/rich_click/rich_command.py", line 126, in main
rv = self.invoke(ctx)
File "/home/xxxx/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/xxxx/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/xxxx/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/xxxx/.local/lib/python3.10/site-packages/clir/cli.py", line 38, in new
new_command.save_command()
File "/home/xxx/.local/lib/python3.10/site-packages/clir/utils/objects.py", line 36, in save_command
current_commands[str(command)] = {"description": desc, "tag": tag, "uid": str(uid)}
TypeError: list indices must be integers or slices, not str

Feature: delete commands in bulk

Delete the commands shown in the table after performing a ls command. This can be risky because all the commands in the commands.json file could be deleted by accident, but it can be useful for deleting commands that belong to a same project and are grouped by tag.

Improvement: add arguments to commands

This can be useful when running a command that needs specific arguments.

Simple example: Execute an Ansible Playbook, the command can be something like ansible-playbook -i inventory <playbook>, and when it is executed, clir asks for the argument <playbook>.

Feature: cloud backup

Add the possibility of backup commands and config data regularly online. Maybe use Google Drive, Dropbox, GitHub?

Improvement: pass command's id when executing a clir action

Allow to pass id to commands, like copy and run. This can allow to execute accions faster, like copy and run commands by using aliases.

This of course would be interesting for tables that don't change that often. For instance, a table that a specific tag returns.

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.