File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1195,15 +1195,15 @@ cmd_import_definitions(#rabbit_cli{arg_map = ArgMap} = Context) ->
11951195 end .
11961196
11971197import_from_file (Context , Filename ) ->
1198- case rabbit_cli_backend :read_file (Context , Filename ) of
1198+ case rabbit_cli_io :read_file (Context , Filename ) of
11991199 {ok , Data } ->
12001200 do_import (Context , Data );
12011201 {error , _ } = Error ->
12021202 Error
12031203 end .
12041204
12051205import_from_stdin (Context ) ->
1206- case rabbit_cli_backend :read_stdin (Context ) of
1206+ case rabbit_cli_io :read_stdin (Context ) of
12071207 {ok , Data } ->
12081208 do_import (Context , Data );
12091209 {error , _ } = Error ->
@@ -1236,7 +1236,7 @@ cmd_export_definitions(#rabbit_cli{arg_map = ArgMap} = Context) ->
12361236
12371237export_to_file (Context , Defs , Filename ) ->
12381238 Json = json :encode (Defs ),
1239- rabbit_cli_backend :write_file (Context , Filename , Json ).
1239+ rabbit_cli_io :write_file (Context , Filename , Json ).
12401240
12411241export_to_stdin (# rabbit_cli {terminal = Terminal }, Defs ) ->
12421242 Json = case Terminal of
You can’t perform that action at this time.
0 commit comments