You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/07/14 19:36:48 UTC

[GitHub] jessealva commented on issue #2484: Truncate Entity Names from CLI List Commands

jessealva commented on issue #2484: Truncate Entity Names from CLI List Commands
URL: https://github.com/apache/incubator-openwhisk/issues/2484#issuecomment-315448736
 
 
   any idea how we want to truncate?  Its super easy to just do something like chopping off all the characters after some size N.  What I've seen to be pretty popular is to have something like "myreallylongteststringtotruncate" be turned into something like "myreallylong...ncate". 
   
   Since our current padding max length for package name is 70 characters, we can reserve say, 67 for the name (to give a 3 space padding between the end of the name and the start of the publish state field) and then break up the same such that we do something like always printing the first 54 characters, 3 periods, and then the last 10 characters of the string.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services