From 7fc549f24d0b914f5c79da8e228776a3f8c270a6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 18 Aug 2022 10:30:39 +0300 Subject: [PATCH] aedi: add descriptions to target class methods --- aedi/target/base.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/aedi/target/base.py b/aedi/target/base.py index 365b4195..10432065 100644 --- a/aedi/target/base.py +++ b/aedi/target/base.py @@ -46,21 +46,30 @@ class Target: self.unsupported_architectures = () def prepare_source(self, state: BuildState): + """ Called when target is selected by name """ pass def initialize(self, state: BuildState): + """ Called on all targets except the selected one before prefix directory creation """ pass def detect(self, state: BuildState) -> bool: + """ + Called when target is selected by source code directory + Called on all targets until match is found + """ return False def configure(self, state: BuildState): + """ Called before selected target is about to build """ pass def build(self, state: BuildState): + """ Does actual build """ pass def post_build(self, state: BuildState): + """ Called after selected target is built """ pass