Skip to content

add default_config verb to create a default configuration file - #45

Merged
Yadunund merged 1 commit into
ros-infrastructure:mainfrom
ottojo:verb_default_config
Feb 7, 2024
Merged

Yadunund merged 1 commit into
ros-infrastructure:mainfrom
ottojo:verb_default_config

Conversation

@ottojo

@ottojo ottojo commented Sep 27, 2022

Copy link
Copy Markdown
Contributor

Information about the config file format is hard to find, i think this makes it easier to use.

This adds a verb default_config which just writes the default config file already present in the code to a file, to be customized by the package author.

@mikeferguson mikeferguson left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I just tried this out (rebased on top of main) and I do think it would be a helpful addition to this tool (everything worked as advertised)

@Yadunund Yadunund left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@ottojo thanks for the contribution and thank you @mikeferguson for reviewing this PR.

Left a couple of nitpicks to address before we can merge.

Alternatively @mikeferguson if you could open a PR with the main rebase and the copyright headers added, happy to merge that in as long as the origin commit authored by @ottojo is preserved.

@@ -0,0 +1,16 @@

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add copyright header

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.

I added a header, not sure if it is expected to dedicate copyright to OSRF, that can be done if desired.

@@ -0,0 +1,31 @@
import os

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add copyright header.

@ottojo
ottojo force-pushed the verb_default_config branch from d4dd78f to 08c4fb3 Compare February 6, 2024 19:56
@ottojo
ottojo requested review from audrow and tfoote as code owners February 6, 2024 19:56
@ottojo

ottojo commented Feb 6, 2024

Copy link
Copy Markdown
Contributor Author

Nice to see some activity here, I think package documentation is such an important aspect of ROS with much room for improvement!

I rebased the commit to latest main, and tested it myself as well.

@ottojo
ottojo requested a review from Yadunund February 6, 2024 20:00

@tfoote tfoote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for pushing this forward

@Yadunund

Yadunund commented Feb 7, 2024

Copy link
Copy Markdown
Collaborator

Looks like our linters have flagged some formatting issues with the changes proposed. Do you mind addressing them?

Signed-off-by: Jonas Otto <jonas@jonasotto.com>
@ottojo
ottojo force-pushed the verb_default_config branch from 08c4fb3 to 62f8e6e Compare February 7, 2024 09:40
@ottojo

ottojo commented Feb 7, 2024

Copy link
Copy Markdown
Contributor Author

should be fixed! @Yadunund

@Yadunund
Yadunund merged commit 2566910 into ros-infrastructure:main Feb 7, 2024
@ottojo
ottojo deleted the verb_default_config branch February 7, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants