Skip to content

Align node save with list save#31

Merged
kivkiv12345 merged 3 commits intomasterfrom
node_save_alignment
Mar 21, 2025
Merged

Align node save with list save#31
kivkiv12345 merged 3 commits intomasterfrom
node_save_alignment

Conversation

@kivkiv12345
Copy link
Copy Markdown
Contributor

This PR changes node save to accept a filename argument (similar to list save) instead of simply saving to the home directory.
It also changes node list to a simple alias, instead of having 2 very similar commands.

It seems to me that these commands simply haven't kept up with our new preference for using project/mission directories. Hence why they assume a global list in the home directory.

This commit changes `node save` to accept a filename argument (similar to `list save`)
instead of simply saving to the home directory.
It also changes `node list` to a simple alias, instead of having 2 very similar commands.
}

for (host_t* host = SLIST_FIRST(&known_hosts); host != NULL; host = SLIST_NEXT(host, next)) {
for (host_t* host = SLIST_FIRST(&known_hosts); host != NULL; host = SLIST_NEXT(host, next)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this space is required :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!
Some of them actually came from param_list_slash.c

something something `__attribute__((cleanup(...)))`
@kivkiv12345 kivkiv12345 merged commit d34a5ef into master Mar 21, 2025
2 checks passed
@kivkiv12345 kivkiv12345 deleted the node_save_alignment branch March 21, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants