10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/omnifocus_mcp/tools/messages/add_omnifocus_task.rb', line 10
def success(args, result)
location_text = location_for(args, result.placement)
tag_text = tag_text_for(args[:tags])
due_text = if args[:dueDate]
" due on #{Definitions::DateFormatter.format_date(args[:dueDate],
style: :locale)}"
else
""
end
warning = placement_warning(args, result.placement)
%(✅ Task "#{args[:name]}" created successfully #{location_text}#{due_text}#{tag_text}.#{warning})
end
|