Giter Club home page Giter Club logo

my-next-meeting's Introduction

my-next-meeting

A simple CLI written in Go to get your next meeting from Google calendar.

The CLI was built using Cobra and the Google Calendar API

Installation

To install locally:

  1. Clone this repo in your $GOPATH

  2. Install the Cobra library

โžœ go get -u github.com/spf13/cobra/cobra

  1. Install the Google Calendar API

โžœ go get google.golang.org/api/calendar/v3

  1. Navigate to the project directory

cd my-next-meeting

  1. Create a token.json file

You need to create a token.json file in the project root directory with your Google Access and Refresh Token.
Those are needed for the Google OAuth flow.
For information on how to get the keys, check the Google Calendar Quickstart Guide.
Note: do not share, or commit those on Github repos, keep them safe.

  1. Build the project

go install main.go

  1. Run the commands to get or cancel your next meeting:

my-next-meeting get

my-next-meeting cancel --comment "Sorry, I can't make it."

Usage

Usage: my-next-meeting [command]

Available Commands:

  • cancel Cancel your next Google Calendar meeting
  • get Get your next Google Calendar meeting
  • help Help about any command

TODO:

  • Allow getting or cancelling more than the next meeting passing a flag.
  • Write tests.

Contributing

Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

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.