aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS7
-rw-r--r--configure.ac2
m---------grecs0
-rw-r--r--src/allocaddr-cl.opt4
-rw-r--r--src/asscaddr-cl.opt4
-rw-r--r--src/atvol.c2
-rw-r--r--src/cpimg-cl.opt3
-rw-r--r--src/cpsnap-cl.opt3
-rw-r--r--src/deimg.c4
-rw-r--r--src/detvol-cl.opt4
-rw-r--r--src/disasaddr-cl.opt4
-rw-r--r--src/eclat.h5
-rw-r--r--src/freeaddr-cl.opt4
-rw-r--r--src/generic-cl.opt9
-rw-r--r--src/getconout.c2
-rw-r--r--src/lsaddr-cl.opt4
-rw-r--r--src/lsattr-cl.opt4
-rw-r--r--src/lsiattr.c2
-rw-r--r--src/lsimg-cl.opt4
-rw-r--r--src/lsinst.c7
-rw-r--r--src/lsistat-cl.opt4
-rw-r--r--src/lsreg.c7
-rw-r--r--src/lssattr.c6
-rw-r--r--src/lssg-cl.opt4
-rw-r--r--src/lssnap-cl.opt4
-rw-r--r--src/lstag-cl.opt4
-rw-r--r--src/lsvol.c2
-rw-r--r--src/lszon.c10
-rw-r--r--src/mkimg-cl.opt4
-rw-r--r--src/mkinst-cl.opt4
-rw-r--r--src/mksnap.c2
-rw-r--r--src/mktags-cl.opt4
-rw-r--r--src/mkvol-cl.opt4
-rw-r--r--src/rmsnap.c2
-rw-r--r--src/rmvol.c2
-rw-r--r--src/setiattr.c2
-rw-r--r--src/startstop.c11
-rw-r--r--src/util.c2
38 files changed, 86 insertions, 70 deletions
diff --git a/NEWS b/NEWS
index d0181d9..cf1a14d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,10 +1,15 @@
1Eclat NEWS -- history of user-visible changes. 2013-01-19 1Eclat NEWS -- history of user-visible changes. 2013-04-24
2Copyright (C) 2012, 2013 Sergey Poznyakoff 2Copyright (C) 2012, 2013 Sergey Poznyakoff
3See the end of file for copying conditions. 3See the end of file for copying conditions.
4 4
5Please send Eclat bug reports to <gray+eclat@gnu.org.ua> 5Please send Eclat bug reports to <gray+eclat@gnu.org.ua>
6 6
7 7
8Version 0.9.90, Git
9
10Implement more commands.
11
12
8Version 0.1, 2012-10-23 13Version 0.1, 2012-10-23
9 14
10First alpha release. 15First alpha release.
diff --git a/configure.ac b/configure.ac
index 64636fc..43daa5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@
15# along with Eclat. If not, see <http://www.gnu.org/licenses/>. 15# along with Eclat. If not, see <http://www.gnu.org/licenses/>.
16 16
17AC_PREREQ(2.63) 17AC_PREREQ(2.63)
18AC_INIT([eclat], 0.1, [bug-eclat@gnu.org.ua],, 18AC_INIT([eclat], 0.9.90, [bug-eclat@gnu.org.ua],,
19 [http://www.gnu.org.ua/software/eclat]) 19 [http://www.gnu.org.ua/software/eclat])
20AC_CONFIG_SRCDIR([src/eclat.h]) 20AC_CONFIG_SRCDIR([src/eclat.h])
21AC_CONFIG_AUX_DIR([build-aux]) 21AC_CONFIG_AUX_DIR([build-aux])
diff --git a/grecs b/grecs
Subproject 588bb9898edcc8b531980fcb180e4955d29ed40 Subproject 62fb1075edd466dc0b713ef8feeadacb1bad317
diff --git a/src/allocaddr-cl.opt b/src/allocaddr-cl.opt
index 4c07803..c618375 100644
--- a/src/allocaddr-cl.opt
+++ b/src/allocaddr-cl.opt
@@ -14,11 +14,11 @@
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ 15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
16 16
17OPTIONS_BEGIN("eclat allocate-address", 17OPTIONS_COMMAND_BEGIN("eclat",
18 [<allocaddr, allocate-address>],
18 [<allocate Elastic IP address>], 19 [<allocate Elastic IP address>],
19 [<>], 20 [<>],
20 [<gnu>], 21 [<gnu>],
21 [<nousage>],
22 [<noversion>]) 22 [<noversion>])
23 23
24OPTION(vpc,v,, 24OPTION(vpc,v,,
diff --git a/src/asscaddr-cl.opt b/src/asscaddr-cl.opt
index 3c63e19..87846e3 100644
--- a/src/asscaddr-cl.opt
+++ b/src/asscaddr-cl.opt
@@ -14,11 +14,11 @@
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ 15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
16 16
17OPTIONS_BEGIN("eclat associate-address", 17OPTIONS_COMMAND_BEGIN("eclat",
18 [<asscaddr, associate-address>],
18 [<associate IP address with an instance>], 19 [<associate IP address with an instance>],
19 [<INSTANCE IP-OR-ALLOC-ID>], 20 [<INSTANCE IP-OR-ALLOC-ID>],
20 [<gnu>], 21 [<gnu>],
21 [<nousage>],
22 [<noversion>]) 22 [<noversion>])
23 23
24OPTION(vpc,v,, 24OPTION(vpc,v,,
diff --git a/src/atvol.c b/src/atvol.c
index de81454..2ee452b 100644
--- a/src/atvol.c
+++ b/src/atvol.c
@@ -22,7 +22,7 @@ eclat_attach_volume(eclat_command_env_t *env, int argc, char **argv)
22 int i; 22 int i;
23 23
24 generic_proginfo->args_doc = "VOL-ID INST-ID DEV-NAME"; 24 generic_proginfo->args_doc = "VOL-ID INST-ID DEV-NAME";
25 generic_parse_options("eclat attach-volume", 25 generic_parse_options(env->cmd,
26 "attach a volume to an instance", 26 "attach a volume to an instance",
27 argc, argv, &i); 27 argc, argv, &i);
28 28
diff --git a/src/cpimg-cl.opt b/src/cpimg-cl.opt
index d31bb92..4a01386 100644
--- a/src/cpimg-cl.opt
+++ b/src/cpimg-cl.opt
@@ -19,7 +19,8 @@ char *image;
19char *name; 19char *name;
20char *descr; 20char *descr;
21 21
22OPTIONS_BEGIN("eclat copy-image", 22OPTIONS_COMMAND_BEGIN("eclat",
23 [<cpimg, copy-image>],
23 [<copy an AMI from another region>], 24 [<copy an AMI from another region>],
24 [<REGION AMI-ID>], 25 [<REGION AMI-ID>],
25 [<gnu>], 26 [<gnu>],
diff --git a/src/cpsnap-cl.opt b/src/cpsnap-cl.opt
index e53a2cc..13423b5 100644
--- a/src/cpsnap-cl.opt
+++ b/src/cpsnap-cl.opt
@@ -18,7 +18,8 @@ char *region;
18char *image; 18char *image;
19char *descr; 19char *descr;
20 20
21OPTIONS_BEGIN("eclat copy-snapshot", 21OPTIONS_COMMAND_BEGIN("eclat",
22 [<cpsnap, copy-snapshot>],
22 [<copy snapshot from another region>], 23 [<copy snapshot from another region>],
23 [<REGION SNAP-ID>], 24 [<REGION SNAP-ID>],
24 [<gnu>], 25 [<gnu>],
diff --git a/src/deimg.c b/src/deimg.c
index 73fda13..4a76d39 100644
--- a/src/deimg.c
+++ b/src/deimg.c
@@ -22,9 +22,7 @@ eclat_deregister_image(eclat_command_env_t *env, int argc, char **argv)
22 int i; 22 int i;
23 23
24 generic_proginfo->args_doc = "AMI-ID"; 24 generic_proginfo->args_doc = "AMI-ID";
25 generic_parse_options("eclat deregister-image", 25 generic_parse_options(env->cmd, "deregister AMI", argc, argv, &i);
26 "deregister AMI",
27 argc, argv, &i);
28 argv += i; 26 argv += i;
29 argc -= i; 27 argc -= i;
30 28
diff --git a/src/detvol-cl.opt b/src/detvol-cl.opt
index b1781b4..2acf20b 100644
--- a/src/detvol-cl.opt
+++ b/src/detvol-cl.opt
@@ -14,11 +14,11 @@
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ 15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
16 16
17OPTIONS_BEGIN("eclat detach-volume", 17OPTIONS_COMMAND_BEGIN("eclat",
18 [<devol, detach-volume>],
18 [<detach a volume from instance>], 19 [<detach a volume from instance>],
19 [<VOL-ID [INST-ID [DEV-NAME]]>], 20 [<VOL-ID [INST-ID [DEV-NAME]]>],
20 [<gnu>], 21 [<gnu>],
21 [<nousage>],
22 [<noversion>]) 22 [<noversion>])
23 23
24OPTION(force,f,, 24OPTION(force,f,,
diff --git a/src/disasaddr-cl.opt b/src/disasaddr-cl.opt
index 9be979b..0695387 100644
--- a/src/disasaddr-cl.opt
+++ b/src/disasaddr-cl.opt
@@ -14,11 +14,11 @@
14 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ 15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
16 16
17OPTIONS_BEGIN("eclat disassociate-address", 17OPTIONS_COMMAND_BEGIN("eclat",
18 [<disasadr, disassociate-address>],
18 [<disassociate IP address from instance>], 19 [<disassociate IP address from instance>],
19 [<IP-OR-ALLOC-ID>], 20 [<IP-OR-ALLOC-ID>],
20 [<gnu>], 21 [<gnu>],
21 [<nousage>],
22 [<noversion>]) 22 [<noversion>])
23 23
24OPTION(vpc,v,, 24OPTION(vpc,v,,
diff --git a/src/eclat.h b/src/eclat.h
index 73bf25c..d4d863f 100644
--- a/src/eclat.h
+++ b/src/eclat.h
@@ -85,6 +85,8 @@ struct eclat_command {
85}; 85};
86 86
87struct eclat_command *find_command_name(const char *name); 87struct eclat_command *find_command_name(const char *name);
88int eclat_do_command(eclat_command_env_t *env, struct eclat_command *command,
89 int argc, char **argv);
88 90
89int eclat_start_instance(eclat_command_env_t *env, int argc, char **argv); 91int eclat_start_instance(eclat_command_env_t *env, int argc, char **argv);
90int eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv); 92int eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv);
@@ -176,7 +178,8 @@ int get_access_creds(const char *id, char **access_key_ptr,
176void define_format(const char *name, const char *fmt, grecs_locus_t *loc