Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target-gen reformat and hexify some YAML properties #2548

Merged
merged 7 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename
  • Loading branch information
bugadani committed Jun 6, 2024
commit 582a8cba423232595a83e9ac166f04f128eb56e4
2 changes: 1 addition & 1 deletion changelog/added-target-gen-refresh.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
target-gen: Added `refresh` command to reformat a YAML file or a directory of YAML files.
target-gen: Added `reformat` command to reformat a YAML file or a directory of YAML files.
4 changes: 2 additions & 2 deletions target-gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ enum TargetGen {
test_start_sector_address: Option<u64>,
},
/// Loads and updates target description from YAML files.
Refresh {
Reformat {
/// The path of the YAML definition file or folder.
yaml_path: PathBuf,
},
Expand Down Expand Up @@ -161,7 +161,7 @@ async fn main() -> Result<()> {
definition_export_path.as_path(),
test_start_sector_address,
)?,
TargetGen::Refresh { yaml_path } => {
TargetGen::Reformat { yaml_path } => {
if yaml_path.is_dir() {
let entries = std::fs::read_dir(&yaml_path).context(format!(
"Failed to read directory '{}'.",
Expand Down