Skip to content

Commit 234d48c

Browse files
authored
Merge pull request #62 from UncleGrumpy/deprications
Add removal warnings to legacy providers
2 parents 58b01f2 + 9fdd2c7 commit 234d48c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/legacy_esp32_flash_provider.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ init(State) ->
5656
{short_desc, "A rebar plugin to flash packbeam files to ESP32 devices (DEPRECATED)"},
5757
{desc,
5858
"A rebar plugin to flash packbeam files to ESP32 devices.~n~n"
59-
"IMPORTANT! this plugin has been DEPRECATED!~n"
59+
"IMPORTANT! this plugin has been DEPRECATED and will be REMOVED in the 0.9.0 release!~n"
6060
"Use `rebar3 atomvm esp32_flash`, instead.~n"}
6161
]),
6262
{ok, rebar_state:add_provider(State, Provider)}.
6363

6464
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
6565
do(State) ->
6666
rebar_api:warn("DEPRECATED The esp32_flash tool has been moved under the atomvm namespace", []),
67+
rebar_api:warn("This legacy provider will be REMOVED in the 0.9.0 release.", []),
6768
atomvm_esp32_flash_provider:do(State).
6869

6970
-spec format_error(any()) -> iolist().

src/legacy_packbeam_provider.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ init(State) ->
5757
{short_desc, "A rebar plugin to create packbeam files (DEPRECATED)"},
5858
{desc,
5959
"A rebar plugin to create packbeam files.~n~n"
60-
"IMPORTANT! this plugin has been DEPRECATED!~n"
60+
"IMPORTANT! this plugin has been DEPRECATED and will be REMOVED in the 0.9.0 release!~n"
6161
"Use `rebar3 atomvm packbeam`, instead.~n"}
6262
]),
6363
{ok, rebar_state:add_provider(State, Provider)}.
6464

6565
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
6666
do(State) ->
6767
rebar_api:warn("DEPRECATED The packbeam tool has been moved under the atomvm namespace", []),
68+
rebar_api:warn("This legacy provider will be REMOVED in the 0.9.0 release.", []),
6869
atomvm_packbeam_provider:do(State).
6970

7071
-spec format_error(any()) -> iolist().

src/legacy_stm32_flash_provider.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ init(State) ->
5454
{short_desc, "A rebar plugin to flash packbeam files to STM32 devices (DEPRECATED)"},
5555
{desc,
5656
"A rebar plugin to flash packbeam files to STM32 devices.~n~n"
57-
"IMPORTANT! this plugin has been DEPRECATED!~n"
57+
"IMPORTANT! this plugin has been DEPRECATED and will be REMOVED in the 0.9.0 release!~n"
5858
"Use `rebar3 atomvm stm32_flash`, instead.~n"}
5959
]),
6060
{ok, rebar_state:add_provider(State, Provider)}.
6161

6262
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
6363
do(State) ->
6464
rebar_api:warn("DEPRECATED The stm32_flash tool has been moved under the atomvm namespace", []),
65+
rebar_api:warn("This legacy provider will be REMOVED in the 0.9.0 release.", []),
6566
atomvm_stm32_flash_provider:do(State).
6667

6768
-spec format_error(any()) -> iolist().

0 commit comments

Comments
 (0)