Uses of Interface
net.thevpc.naru.api.agent.NaruSessionBuilder
Packages that use NaruSessionBuilder
-
Uses of NaruSessionBuilder in net.thevpc.naru.api.agent
Methods in net.thevpc.naru.api.agent that return NaruSessionBuilderModifier and TypeMethodDescriptionNaruSessionBuilder.banner(boolean banner) Prints the startup banner on the agent's own channel.NaruSessionBuilder.bannerMessage(NMsg bannerMessage) Where the session keeps its state.NaruSessionBuilder.interaction(NaruInteraction interaction) How the session reaches its user: a terminal, a stream, or anything else.NaruSessionBuilder.interactive()The first task reads user input line by line, which is what makes a session feel interactive rather than batch.NaruAgent.newSession()Begins configuring a new session.NaruSessionBuilder.richTerm(boolean richTerm) Enables the rich terminal: ANSI styling and command highlighting.NaruSessionBuilder.script(InputStream in) Reads the session's script from a stream, one statement per line.NaruSessionBuilder.statements(String... statements) Shorthand for runningstatementsas the session's first task, with input arriving line by line.NaruSessionBuilder.task(NaruTaskSpec task) The task the session runs when it starts.