All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.salesforce.functions.jvm.runtime.commands.MainCommand Maven / Gradle / Ivy

There is a newer version: 1.1.7
Show newest version
/*
 * Copyright (c) 2021, salesforce.com, inc.
 * All rights reserved.
 * SPDX-License-Identifier: BSD-3-Clause
 * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
 */
package com.salesforce.functions.jvm.runtime.commands;

import java.util.concurrent.Callable;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Model.CommandSpec;
import picocli.CommandLine.Spec;

@Command(
    name = "sf-fx-runtime-java",
    description = "Salesforce Functions Java Runtime",
    footer = "%nSee 'sf-fx-runtime-java help ' to read about a specific subcommand.",
    subcommands = {ServeCommand.class, BundleCommand.class, CommandLine.HelpCommand.class})
public class MainCommand implements Callable {
  @Spec CommandSpec spec;

  @Override
  public Integer call() throws Exception {
    spec.commandLine().usage(System.err);
    return 1;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy