10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/omnifocus_mcp/tools/messages/add_project.rb', line 10
def success(args)
location = args[:folderName] ? %(in folder "#{args[:folderName]}") : "at the root level"
tags = args[:tags] && !args[:tags].empty? ? " with tags: #{args[:tags].join(", ")}" : ""
due = if args[:dueDate]
" due on #{Definitions::DateFormatter.format_date(args[:dueDate], style: :locale)}"
else
""
end
sequential = args[:sequential] ? " (sequential)" : " (parallel)"
%(✅ Project "#{args[:name]}" created successfully #{location}#{due}#{tags}#{sequential}.)
end
|