 
   @spec current_datetime() :: {:ok, DateTime.t()} | :error
   defp current_datetime do
-    Timex.local()
+    {:ok, Timex.local()}
   rescue
     _ -> :error
   end

    File.open(path, [:write, :exclusive, :utf8])
  end

  def short_help(_task), do: "Add a new blog post to the current project"

  def synopsis(_task), do: "serum newpost [OPTIONS]"

         path = full_path(opts[:output], now),
         {:ok, file} <- create_file(path)
    do
      IO.write(file, generate_contents(opts, now))
      File.close(file)
      msg_gen(path)
      {:cli_exit, 0}
