diff --git a/.gitignore b/.gitignore index dd3837f..fb8dc1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # JCB clients src/jcb/configuration/algorithms/ src/jcb/configuration/apps/gdas/ +src/jcb/configuration/apps/rdas/ test/client_integration/*yaml # Mac files diff --git a/jcb_client_init.py b/jcb_client_init.py index a48c095..78e75c0 100755 --- a/jcb_client_init.py +++ b/jcb_client_init.py @@ -36,11 +36,16 @@ def write_message(message: str, center: bool = False) -> None: max_line_length = 100 # Break the message into a list of lines max 100 characters but do not cut a word in half + # Unless a word itself is longer than 100 characters, then force cut. lines = [] while len(message) > max_line_length: last_space = message[:max_line_length].rfind(' ') - lines.append(message[:last_space]) - message = message[last_space+1:] + if last_space == -1: # no space found, force cut + lines.append(message[:max_line_length]) + message = message[max_line_length:] + else: + lines.append(message[:last_space]) + message = message[last_space+1:] lines.append(message) # If center is true center the lines diff --git a/jcb_clients.yaml b/jcb_clients.yaml index 5181737..b379e57 100644 --- a/jcb_clients.yaml +++ b/jcb_clients.yaml @@ -1,3 +1,7 @@ gdas: git_url: noaa-emc/jcb-gdas git_ref: develop + +rdas: + git_url: noaa-emc/jcb-rdas + git_ref: develop