Code Monkey home page Code Monkey logo

clockidup's Issues

Ability to use a custom/different workspace

I use different workspaces to separate personal/work projects etc.

It would be great if I could use / switch workspaces in which I use, via config file or via command line.

Currently looking at:

clockidup/main.go

Lines 237 to 248 in 058ae20

workspaces, err := clockify.Workspaces()
if err != nil {
return fmt.Errorf("%s", err)
}
if len(workspaces) == 0 {
return fmt.Errorf("no workspace found")
}
workspace := workspaces[0]
userID := workspace.Memberships[0].UserID
timeEntries, err := clockify.TimeEntries(workspaces[0].ID, userID, start, end)

It uses the first workspace provided from the API?

Login command is broken

I think the login process flow may be slightly broken:

info: the API token is available at https://clockify.me/user/settings
debug: curl -v -X GET  --header 'X-Api-Key: ' --header 'host: api.clockify.me'   https://api.clockify.me/api/v1/workspaces
? Clockify API token [REDACTED]
debug: token: [REDACTED]
debug: curl -v -X GET  --header 'X-Api-Key: [REDACTED]' --header 'host: api.clockify.me'   https://api.clockify.me/api/v1/workspaces
debug: curl -v -X GET  --header 'X-Api-Key: ' --header 'host: api.clockify.me'   https://api.clockify.me/api/v1/workspaces
error: login failed: token seems to be invalid

It looks as though, the configfile is either not written or not re-read in on the second api call?

If I create the file manually: ${HOME}/.config/standup.yaml all is well and things start working as expected.

Ability to add projects

Would it be of interest to add, adding of projects from within the CLI also? or do you think this would exceed the scope of this tool?

Something like:

clockidup project add XXXXXXXX

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.