com.aragost.javahg.commands.flags.StatusCommandFlags Maven / Gradle / Ivy
/*
* #%L
* JavaHg
* %%
* Copyright (C) 2011 aragost Trifork ag
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* #L%
*/
/*
* Automatically generated based on Mercurial 2.1.
*/
package com.aragost.javahg.commands.flags;
import com.aragost.javahg.Repository;
import com.aragost.javahg.commands.AbstractCommand;
import com.aragost.javahg.commands.StatusCommand;
public abstract class StatusCommandFlags extends AbstractCommand {
protected StatusCommandFlags(Repository repository) {
super(repository);
}
@Override
public final String getCommandName() {
return "status";
}
public static StatusCommand on(Repository repository) {
return new StatusCommand(repository);
}
/**
* Set the --all command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand all() {
cmdAppend("--all");
return (StatusCommand) this;
}
/**
* Set the --modified command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand modified() {
cmdAppend("--modified");
return (StatusCommand) this;
}
/**
* Set the --added command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand added() {
cmdAppend("--added");
return (StatusCommand) this;
}
/**
* Set the --removed command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand removed() {
cmdAppend("--removed");
return (StatusCommand) this;
}
/**
* Set the --deleted command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand deleted() {
cmdAppend("--deleted");
return (StatusCommand) this;
}
/**
* Set the --clean command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand clean() {
cmdAppend("--clean");
return (StatusCommand) this;
}
/**
* Set the --unknown command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand unknown() {
cmdAppend("--unknown");
return (StatusCommand) this;
}
/**
* Set the --ignored command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand ignored() {
cmdAppend("--ignored");
return (StatusCommand) this;
}
/**
* Set the --copies command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand copies() {
cmdAppend("--copies");
return (StatusCommand) this;
}
/**
* Set the --rev command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand rev(String... revs) {
cmdAppend("--rev", revs);
return (StatusCommand) this;
}
/**
* Set the --change command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand change(String rev) {
cmdAppend("--change", rev);
return (StatusCommand) this;
}
/**
* Set the --include command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand include(String... patterns) {
cmdAppend("--include", patterns);
return (StatusCommand) this;
}
/**
* Set the --exclude command line flag.
*
* @see Mercurial
* documentation
* @return this instance
*/
public StatusCommand exclude(String... patterns) {
cmdAppend("--exclude", patterns);
return (StatusCommand) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy