<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12055">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">add 'show subscriber' command, alias for 'subscriber ... show'<br><br>When I wrote the osmo-hlr subscriber command, I failed to heed the common<br>'show foo' scheme and instead created a 'subscriber [...] show' command.<br>Relieve that weirdness by creating an alias that has 'show' at the start.<br><br>Change-Id: I01ce9b0868302d40ed05c6a588316a194d6071e4<br>---<br>M src/hlr_vty_subscr.c<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/55/12055/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hlr_vty_subscr.c b/src/hlr_vty_subscr.c</span><br><span>index 6ce96fe..f0cf8ba 100644</span><br><span>--- a/src/hlr_vty_subscr.c</span><br><span>+++ b/src/hlr_vty_subscr.c</span><br><span>@@ -159,6 +159,10 @@</span><br><span>       return CMD_SUCCESS;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ALIAS(subscriber_show, show_subscriber_cmd,</span><br><span style="color: hsl(120, 100%, 40%);">+      "show " SUBSCR,</span><br><span style="color: hsl(120, 100%, 40%);">+      SHOW_STR SUBSCR_HELP);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> DEFUN(subscriber_create,</span><br><span>       subscriber_create_cmd,</span><br><span>       SUBSCR_CMD "imsi IDENT create",</span><br><span>@@ -478,6 +482,7 @@</span><br><span> void hlr_vty_subscriber_init(void)</span><br><span> {</span><br><span>   install_element_ve(&subscriber_show_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+ install_element_ve(&show_subscriber_cmd);</span><br><span>        install_element(ENABLE_NODE, &subscriber_create_cmd);</span><br><span>    install_element(ENABLE_NODE, &subscriber_delete_cmd);</span><br><span>    install_element(ENABLE_NODE, &subscriber_msisdn_cmd);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12055">change 12055</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12055"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I01ce9b0868302d40ed05c6a588316a194d6071e4 </div>
<div style="display:none"> Gerrit-Change-Number: 12055 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>