Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

37 lignes
854B

  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Mix.Tasks.Pleroma.Frontend do
  5. use Mix.Task
  6. import Mix.Pleroma
  7. @shortdoc "Manages bundled Pleroma frontends"
  8. @moduledoc File.read!("docs/administration/CLI_tasks/frontend.md")
  9. def run(["install", "none" | _args]) do
  10. shell_info("Skipping frontend installation because none was requested")
  11. "none"
  12. end
  13. def run(["install", frontend | args]) do
  14. start_pleroma()
  15. {options, [], []} =
  16. OptionParser.parse(
  17. args,
  18. strict: [
  19. ref: :string,
  20. static_dir: :string,
  21. build_url: :string,
  22. build_dir: :string,
  23. file: :string
  24. ]
  25. )
  26. Pleroma.Frontend.install(frontend, options)
  27. end
  28. end