Giter Site home page Giter Site logo

Add CLI arguments to vira.py about vira HOT 7 CLOSED

n0v1c3 avatar n0v1c3 commented on May 30, 2024
Add CLI arguments to vira.py

from vira.

Comments (7)

n0v1c3 avatar n0v1c3 commented on May 30, 2024

I am also working on this as well. Currently I use the vim script to pass the auth through and I thought of a pop-up to let you select your server, enter username, password. Then go into select project.

I have now started to use the python code in my day to day so I do expect it to become quite a powerful standalone from the CLI

from vira.

mikeboiko avatar mikeboiko commented on May 30, 2024

Ok nice. This is the format that I've used for a bunch of python scripts now and I think it's quite pythonic.

'''
Vira - do all the jira-ing in vim
'''

# The help file will show the module docstring with this class
parser = argparse.ArgumentParser(
    description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter)

# Specify optional arg
parser.add_argument(
    '-u',
    '--user',
    action='store',
    default='travis',
    help='Jira user name'
)

# Main Code
# ...

# Run script if this file is executed directly
if __name__ == '__main__':
    args = parser.parse_args()
    main()

from vira.

n0v1c3 avatar n0v1c3 commented on May 30, 2024

Might as well put it in now. Do a pull request and I will merge it in.

from vira.

mikeboiko avatar mikeboiko commented on May 30, 2024

k will do

from vira.

n0v1c3 avatar n0v1c3 commented on May 30, 2024

I also have made some lame CLI menus for navigating and editing your issues. I will test your other uploads in my new VIM and then push them this evening.

from vira.

n0v1c3 avatar n0v1c3 commented on May 30, 2024

Although I am sure you are already using the function inside a CLI loop somewhere...

from vira.

mikeboiko avatar mikeboiko commented on May 30, 2024

#5 the merge looks good

from vira.

Related Issues (20)

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.