Code Monkey home page Code Monkey logo

Comments (11)

AnubhaAgrawal avatar AnubhaAgrawal commented on May 20, 2024

I want to work on this issue. I think there should be a requirement of test cases. and what is the difference between #10 and this issue?

from todoman.

untitaker avatar untitaker commented on May 20, 2024

Hello @AnubhaAgrawal, this issue is about the LOCATION property, while #10 is about the CATEGORIES property.

I think there should be a requirement of test cases.

Exactly. For the implementation, here's what needs to happen:

  • Todo already has a location property we can use.

  • I think the LOCATION property should only be shown in the detailed view of a task that is shown using todo show (see TodoFormatter.detailed).

  • todo new needs a --location flag. In the same step, the --location flag for todo edit can be added.

  • The interactive UI needs a new textfield for LOCATION

Let us know if you have any questions!

from todoman.

AnubhaAgrawal avatar AnubhaAgrawal commented on May 20, 2024

but, I think before test cases there is also a need for some other thing. so can you please tell that how I start it.

from todoman.

untitaker avatar untitaker commented on May 20, 2024

@AnubhaAgrawal I'm not sure what you mean. The above bullet point list is regarding the implementation (I think that's what you mean?), not the tests.

from todoman.

AnubhaAgrawal avatar AnubhaAgrawal commented on May 20, 2024

ok, Thankyou! Now, I got it.

from todoman.

AnubhaAgrawal avatar AnubhaAgrawal commented on May 20, 2024

when I print todo --list Anu then why it shows error ??

Traceback (most recent call last):
  File "/home/anubha/Desktop/todoman/venv/bin/todo", line 11, in <module>
    load_entry_point('todoman', 'console_scripts', 'todo')()
  File "/home/anubha/Desktop/todoman/venv/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/anubha/Desktop/todoman/venv/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/anubha/Desktop/todoman/venv/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/anubha/Desktop/todoman/venv/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/anubha/Desktop/todoman/venv/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/anubha/Desktop/todoman/todoman/cli.py", line 95, in command_wrap
    return command(*a, **kw)
  File "/home/anubha/Desktop/todoman/venv/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/anubha/Desktop/todoman/todoman/cli.py", line 194, in new
    ui = TodoEditor(todo, ctx.obj['db'].lists(), ctx.obj['formatter'])
  File "/home/anubha/Desktop/todoman/todoman/ui.py", line 33, in __init__
    self.current_list = todo.list
  File "/home/anubha/Desktop/todoman/todoman/model.py", line 283, in list
    return self._list
AttributeError: 'FileTodo' object has no attribute '_list'

from todoman.

AnubhaAgrawal avatar AnubhaAgrawal commented on May 20, 2024

I create a directory Anu.

from todoman.

untitaker avatar untitaker commented on May 20, 2024

Hmm, I don't get that error though. For me it shows: Error: Invalid value for "lists": Anu.

from todoman.

WhyNotHugo avatar WhyNotHugo commented on May 20, 2024

In progress in #163 (I can't assign to non-contributors).

from todoman.

untitaker avatar untitaker commented on May 20, 2024

Thanks @AnubhaAgrawal!

from todoman.

WhyNotHugo avatar WhyNotHugo commented on May 20, 2024

Thanks! πŸ‘πŸ»

from todoman.

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.