Skip to content

Hinting about 'help' command when starting CLI. - #270

Closed
jovatn wants to merge 1 commit into
kernelkit:mainfrom
jovatn:jovatn/cli-help-message
Closed

jovatn wants to merge 1 commit into
kernelkit:mainfrom
jovatn:jovatn/cli-help-message

Conversation

@jovatn

@jovatn jovatn commented Jan 19, 2024

Copy link
Copy Markdown
Contributor

[skip ci]

@jovatn
jovatn marked this pull request as draft January 19, 2024 13:33
@jovatn

jovatn commented Jan 19, 2024

Copy link
Copy Markdown
Contributor Author

The printout should probably be better formatted. Either a space or a newline. Help neeeded. :-/

infix-00-00-00 login: admin
Password: 
.-------.
|  . .  | Infix -- a Network Operating System
|-. v .-| https://kernelkit.github.io
'-'---'-'See the 'help' command for an introduction to the system.
admin@infix-00-00-00:/> 

@troglobit

Copy link
Copy Markdown
Contributor

Personally, I think an extra leading echo would do the trick, but I know @wkz has a sed expression in the game, so I'm leaving it to him.

@wkz

wkz commented Jan 20, 2024

Copy link
Copy Markdown
Contributor

This whole mess is all down to klish not being able to interpret a literal \n.

I'll explain in full detail on monday.

@troglobit

Copy link
Copy Markdown
Contributor

Iirc, the root cause of this was that motd was of type string rather than binary.

My proposal is that we close this PR and add a message-of-the-day augment to replace it. We can even mark motd as status obsolete to let users know that it's not implemented. That way we can bypass the whole "how to migrate settings" issue for now.

@troglobit troglobit mentioned this pull request Feb 29, 2024
2 of 13 tasks
@troglobit

Copy link
Copy Markdown
Contributor

Suggest closing this in favor of #324

@jovatn

jovatn commented Feb 29, 2024

Copy link
Copy Markdown
Contributor Author

Agree! Great work!

@troglobit

Copy link
Copy Markdown
Contributor

Alright, closing. Please note, I've made an adjustment to the naming of the new node, inspired by openconfig.

@troglobit troglobit closed this Mar 1, 2024
@jovatn
jovatn deleted the jovatn/cli-help-message branch March 1, 2024 08:17
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.

3 participants