Package org.sonatype.gshell.util

Examples of org.sonatype.gshell.util.PrintBuffer.format()


        }

        @Override
        public String getMessage() {
            PrintBuffer buff = new PrintBuffer();
            buff.format("%s (%d)", status.getReasonPhrase(), status.getStatusCode());

            if (errors != null) {
                int i = 1;
                for (ErrorMessage error : errors) {
                    buff.println();
View Full Code Here


            if (errors != null) {
                int i = 1;
                for (ErrorMessage error : errors) {
                    buff.println();
                    buff.format("    [%d] %s (%s)", i++, error.getMsg(), error.getId());
                }
            }

            return buff.toString();
        }
View Full Code Here

    @Override
    public String getWelcomeMessage() {
        PrintBuffer buff = new PrintBuffer();

        buff.format("%s (%s)", getDisplayName(), getVersion()).println();
        buff.println();
        buff.println("Type '@|bold help|@' for more information.");
        buff.print(line());
        buff.flush();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.