~cosmicrose/sourcehut_cli

71c9683c08057d86730d09abf81deb8ccaf6cb81 — Rosa Richter 8 months ago ba07c34
Nevermind, work on what is here
2 files changed, 2 insertions(+), 22 deletions(-)

M lib/sourcehut/cli.ex
D lib/sourcehut/cli/builds.ex
M lib/sourcehut/cli.ex => lib/sourcehut/cli.ex +2 -11
@@ 3,7 3,7 @@ defmodule Sourcehut.CLI do
  Documentation for `Sourcehut.CLI`.
  """
  alias Vapor.Provider.File
  alias Sourcehut.CLI.{Builds, Todo}
  alias Sourcehut.CLI.Todo

  def main(argv) do
    providers = [


@@ 21,8 21,7 @@ defmodule Sourcehut.CLI do
      allow_unknown_args: false,
      parse_double_dash: true,
      subcommands: [
        todo: Todo.subcommand(),
        builds: Builds.subcommand()
        todo: Todo.subcommand()
      ]
    )
    |> Optimus.parse!(argv)


@@ 37,14 36,6 @@ defmodule Sourcehut.CLI do
    Todo.do_command(args, config)
  end

  def do_command({[:builds], _opts} = args, config) do
    Builds.do_command(args, config)
  end

  def do_command({[:builds | _rest], _opts} = args, config) do
    Builds.do_command(args, config)
  end

  def do_command(_, _) do
    IO.puts("Command not recognized")
  end

D lib/sourcehut/cli/builds.ex => lib/sourcehut/cli/builds.ex +0 -11
@@ 1,11 0,0 @@
defmodule Sourcehut.CLI.Builds do
  def subcommand do
    [
      name: "builds"
    ]
  end

  def do_command(args, config) do
    IO.inspect("You're gonna get builds!")
  end
end