Enable the '--reverse' option in 'list-files' action

parent 4d712d8d
...@@ -117,6 +117,8 @@ class ActionCore(Action): ...@@ -117,6 +117,8 @@ class ActionCore(Action):
file_set = self.build_file_set(top_entity=self.env.options.top) file_set = self.build_file_set(top_entity=self.env.options.top)
file_list = dep_solver.make_dependency_sorted_list(file_set) file_list = dep_solver.make_dependency_sorted_list(file_set)
files_str = [file_aux.path for file_aux in file_list] files_str = [file_aux.path for file_aux in file_list]
if self.env.options.reverse is True:
files_str.reverse()
if self.env.options.delimiter is None: if self.env.options.delimiter is None:
delimiter = "\n" delimiter = "\n"
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment