Sha256: 353089987b6c3600eea464e1bec4a181f026bf2389f238bd4064609208ef7306

Contents?: true

Size: 913 Bytes

Versions: 8

Compression:

Stored size: 913 Bytes

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */

#ifndef CLI_cmd_h__
#define CLI_cmd_h__

/* Command definitions */
typedef struct {
	const char *name;
	int (*fn)(int argc, char **argv);
	const char *desc;
} cli_cmd_spec;

/* Options that are common to all commands (eg --help, --git-dir) */
extern const cli_opt_spec cli_common_opts[];

/* All the commands supported by the CLI */
extern const cli_cmd_spec cli_cmds[];

/* Find a command by name */
extern const cli_cmd_spec *cli_cmd_spec_byname(const char *name);

/* Commands */
extern int cmd_cat_file(int argc, char **argv);
extern int cmd_clone(int argc, char **argv);
extern int cmd_hash_object(int argc, char **argv);
extern int cmd_help(int argc, char **argv);

#endif /* CLI_cmd_h__ */

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rugged-1.7.2 vendor/libgit2/src/cli/cmd.h
rugged-1.6.5 vendor/libgit2/src/cli/cmd.h
rugged-1.7.1 vendor/libgit2/src/cli/cmd.h
rugged-1.6.3 vendor/libgit2/src/cli/cmd.h
rugged-1.6.2 vendor/libgit2/src/cli/cmd.h
rugged-1.5.1 vendor/libgit2/src/cli/cmd.h
rugged-1.5.0.1 vendor/libgit2/src/cli/cmd.h
rugged-1.5.0 vendor/libgit2/src/cli/cmd.h