net.thevpc.nuts.toolbox.nsh.jshell.JShellBuiltin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nsh Show documentation
Show all versions of nsh Show documentation
Nuts bash shell companion
/**
* ====================================================================
* Doovos (Distributed Object Oriented Operating System)
*
* Doovos is a new Open Source Distributed Object Oriented Operating System
* Design and implementation based on the Java Platform.
* Actually, it is a try for designing a distributed operation system in
* top of existing centralized/network OS.
* Designed OS will follow the object oriented architecture for redefining
* all OS resources (memory,process,file system,device,...etc.) in a highly
* distributed context.
* Doovos is also a distributed Java virtual machine that implements JVM
* specification on top the distributed resources context.
*
* Doovos BIN is a standard implementation for Doovos boot sequence, shell and
* common application tools. These applications are running onDoovos guest JVM
* (distributed jvm).
*
*
* Copyright [2020] [thevpc]
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain a
* copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*
* ====================================================================
*/
package net.thevpc.nuts.toolbox.nsh.jshell;
import net.thevpc.nuts.NutsCommandAutoComplete;
import net.thevpc.nuts.spi.NutsComponent;
/**
* @author thevpc ([email protected])
* %lastmodified 26 oct. 2004 Time: 23:06:32
*/
public interface JShellBuiltin extends NutsComponent {
/**
* exec and return error code
* @param command command
* @param context context
*/
void exec(String[] command, JShellExecutionContext context);
String getHelp();
String getName();
boolean isEnabled();
void setEnabled(boolean enabled);
String getHelpHeader();
default void autoComplete(JShellExecutionContext context, NutsCommandAutoComplete autoComplete) {
}
}