Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hairyhum/d1dc628670f34c468787f2519195d16f to your computer and use it in GitHub Desktop.
Save hairyhum/d1dc628670f34c468787f2519195d16f to your computer and use it in GitHub Desktop.
-module('Elixir.RabbitMQ.CLI.Ctl.Commands.DummyCommand').
-behaviour('Elixir.RabbitMQ.CLI.CommandBehaviour').
-export([
usage/0
,flags/0
,validate/2
,merge_defaults/2
,banner/2
,run/2
,switches/0
,aliases/0
,output/2
]).
usage() -> <<"No usage">>.
flags() -> [].
validate(_,_) -> ok.
merge_defaults(A,O) -> {A, O}.
banner(_,_) -> <<"NO banner">>.
run(Args, Opts) -> io:format("~p~n", [Args]), {ok, Opts}.
switches() -> [].
aliases() -> [].
output(D, _) -> D.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment