Code Monkey home page Code Monkey logo

destinycli's Introduction

destinycli

So... I wanted to learn Go!

Purpose

This package is not meant to be taken seriously. I am using it as a way to teach myself https://golang.org/ and the many new (to me) concepts that come along with a strictly typed language.

I've always found that when teaching myself a new concept that working with strings has helped me ease into it. And it just so happens that a command line application is just that. Input a few strings, do some process with said strings, output more strings.

Proposed Outcome

I want to create a simple command line application that will query the Destiny API for item information. If possible, I would like to expand on this, but that might not happen.

There is no real need for this type of application within the greater Destiny community. It's just something I thought of while reading through a few Go tutorials.

Proposed API

Fetch an item and display information about it:

Input

$~ destinycli -i Lorentz Driver

Output

Fetching information on Lorentz Driver

Lorentz Driver

Charge Time     - 533
Impact          - ######### (12)
Range           - ########### (18)
Stability       - ############ (24)
Handling        - ###### (8)
Reload Speed    - ####### (10)
Magazine        - 6

English will be the default return language, but the API has 12 other supported languages. To support these, we just need to add a flag so the user can select their language.

$~ destinycli -i Lorentz Driver --lang=es-mx

We might even be able to add support for a local config so that the client would not have to do this. Maybe read a local OS level variable that could give use this info. Again, part of the reason I'm doing this is to work through these sorta problems and solve them. That command could look something like:

$~ destinycli --config-set lang=de

On that note, we could let the user set their bungie id, or preferred platform. That sorta stuff. But that's getting ahead of ourselves.

destinycli's People

Contributors

unisys12 avatar

Watchers

 avatar  avatar

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.