Commit graph

115 commits

Author SHA1 Message Date
docelic@crystallabs.io
c03ba4a650 With ls -l, print file type ('-' or 'd') as first field of output
This change brings output of 'ls -l' closer to the actual shell command.

FossilOrigin-Name: 7f38c81ca4c4844eae37e5450b3bda2f4bfdf4a68c840b81f3f2cd963bc0473d
2019-05-04 20:38:32 +00:00
docelic@crystallabs.io
1b07818e6a Improve save_config()
FossilOrigin-Name: 99d62ede397dea67cc9f7d6b5f4b6e3c8159a693c4dff023abac21440a72e486
2019-05-03 17:23:54 +00:00
docelic@crystallabs.io
dbb0341660 Add missing block to Term::Shell fix
(This corresponds to Term::Shell PR posted at
https://github.com/shlomif/Term-Shell/pull/3)

FossilOrigin-Name: 736db8905066a28cf2a7d8b0a25e2f91d66c4c2299c059b9c49212ffcc17bdcf
2019-04-30 10:07:28 +00:00
docelic@crystallabs.io
89880e320d Make aliases be auto-detected and inserted into help texts.
FossilOrigin-Name: 6911ac8e0c1a62dbd2eb319ee83d953eae7f86312835f14cd81bf5ccdac06d39
2019-04-29 23:10:00 +00:00
docelic@crystallabs.io
5dc5417902 Fix autocompleter for all commands.
FossilOrigin-Name: 7ed32fefcd1fa2274fc7a6d55caf567a7875c8dac630fbcd260ceea37025bdf1
2019-04-29 23:01:18 +00:00
docelic@crystallabs.io
c08875fa11 Multiple help-related changes
- Make every command's POD doc have a single-line introductory description.
This help is then used as a one-liner summary in Term::Shell.

- Tie %cmd_map to IxHash to preserve hash elements' order.

- Fix bug in Term::Shell's code related to command aliases.
(Also emailed Term::Shell author to include the fix in next release.)

- Remove run_() which already exists in Term::Shell.

- Use Term::Shell's help facilities instead of manually redefining
run_help() and other related commands. The complete POD documentation is
still available for viewing if user invokes ./shelldap --help.

- Completer functions are disabled right now (fix coming in the next
commit)

FossilOrigin-Name: a3bfbcceb8e471a3397b5e90cfe9bd0fa7ebe84934de738e34bc620a24f7fe5c
2019-04-29 22:43:51 +00:00
docelic@crystallabs.io
c89d193e53 Properly handle Ctrl+C; add '?' and 'man' aliases; don't import symbols
Make Ctrl+C behave like in the shell (abort current line, redisplay)
Add '?' and 'man' as aliases for help
Add qw// on module 'use's to not import any symbols

FossilOrigin-Name: fc4cb91774beb03f371ad04c5b26e45f6db49ae40af72bb2fbccc6c3c1a65e6f
2019-04-29 19:57:56 +00:00
docelic@crystallabs.io
69dbc50d3c Do not sort flaglist twice
With this change, 'inspect'ing an element prints its attributes
in a defined order: (requiredness, multivaluedness)

Previously, the order was alphabetical and varying.

FossilOrigin-Name: bb3518297cc3ffdd6a8a1db79e681431f56f6d395f5300e6f99d0f444fc5fd04
2019-04-28 22:16:14 +00:00
docelic@crystallabs.io
7c6a055f0c Make 'cat' default to '.' (cwd) instead of requiring argument
FossilOrigin-Name: 893d6cba578595b39026d5ee73566c354393b93619fc48822ce71b97da6f0e6b
2019-04-28 22:10:30 +00:00
docelic@crystallabs.io
56426af86c Improve command descriptions
FossilOrigin-Name: f2e5e85547ef9bd0730875c57283fd22ac72d4c50e6ae61dbd596d14325aa998
2019-04-28 22:09:43 +00:00
docelic@crystallabs.io
c43244840a Streamline %cmd_map
%cmd_map was previously a hash containing:

{
	real_function => alias_function,
	...
}

Now the structure of the hash is:

{
	alias_or_real_func => [ real_func/if_any, autocompleter_func ],
	...
}

This allows for a more streamlined definition of commands and aliases,
and makes it possible to keep all data in %cmd_map instead of having
additional special cases.

FossilOrigin-Name: ea3c724d1676d6f2ddfddfce22c3d32135ab20d26e81f10c39c4c10bc902b5e9
2019-04-28 21:42:26 +00:00
docelic@crystallabs.io
e522c8d4f7 Improve 'help' command
POD documentation has been modified to list available shell commands using =head2
instead of =item.

This, combined with run_help() modified to accept arguments, allows one to use
'help <command name>' to get help for a specific command, similar/equal to getting
help for shell builtins in regular shells.

E.g.:
	help cat
	help list

FossilOrigin-Name: 94e02e094f07f261abc084b1271832ee7640053397b1e32c7d6c72d452611986
2019-04-28 20:38:37 +00:00
docelic@crystallabs.io
4448213735 Fix precedence of command line arguments
Previously, when autogenerating the config file, the name of config
itself was included in the YAML contents.

This in turn caused the config file to be re-parsed again and any
command line arguments were overwritten with values from the config
file.

Now the name of config file is not dumped if it is equal to the file
being written, and the config file is not reparsed if it is the same
file.

FossilOrigin-Name: 9c4483633c8bcf36f4e98ce41ab0f54ea4620a4b7f21ccf07e563e49afbe0da6
2019-04-28 20:11:46 +00:00
docelic@crystallabs.io
da79de2320 Allow default attributes to be set via config and cmdline
This commit changes the default attribute list from a fixed '*'
to a configurable list, defaulting to ['*'].

It allows one to use config file or command line to set default
attributes to retrieve and display - i.e. to set default attributes
to '+' or to a list of multiple specific attributes.

Printing or changing this value through env/setenv is currently not
supported because env/setenv only work properly with string values
while attributes is a list.

FossilOrigin-Name: 8c312e181611c61d43a588d2aa2c6e3d231db490c29f40aee861a0e1832039fc
2019-04-28 19:40:06 +00:00
9949c492ce merge
FossilOrigin-Name: e9c1b30c4ee92eceb2ee6ac418fa445a4a2484bead92c120a6fa057f4ac73a80
2019-04-15 21:18:11 +00:00
9e01a4a51e Add LICENSE file for packaging, bump copyright.
FossilOrigin-Name: 402bf6ec5541677dc298f5b9301eaa889c2f687a972b11fd95843c95d09a8363
2019-04-15 21:16:09 +00:00
ebf69a9a1e Add a link to the Fedora package.
FossilOrigin-Name: f58da73b1b3ffad4b0c579fa06ac84407a339e48d2fd3172b9dafb5b655698fd
2018-04-04 19:30:00 +00:00
0a5e6a51b9 Added tag v1.4.0 for changeset e8af5aa8bd15
FossilOrigin-Name: 777c5cacb71634c21d812ef5e4979724b3e6aec88faf468399385f3d211ae339
2017-06-07 22:01:14 +00:00
fc643b1fd2 Update changelog.
FossilOrigin-Name: 6716f384828670ad0d206c7cbc1e4fab052502101d39a26bdcf2b475d1cb6760
2017-06-07 22:01:09 +00:00
8207fda510 Merge.
FossilOrigin-Name: 4e683968021d572e5259f3cfb2c63d910d1536ac3ed14669a39503fd6ad26e84
2017-06-07 21:59:48 +00:00
de3e84d10b Version bump.
FossilOrigin-Name: 7a05aebf2b38a97457665a66a8f2f6dd7cb35103a5d3ff7baac11ffdb4be7ec2
2017-06-07 21:49:05 +00:00
32202df1ab Make password extension usage consistent with pager control.
FossilOrigin-Name: 35ab0ba86667a1dee396ab98e1c16a3e19d810d3db80cee58bbe8c1c965208f7
2017-06-07 21:48:42 +00:00
2a068606e6 Optionally use the server side pager control for search results.
FossilOrigin-Name: 80a69ef0eaf294692b133e14c1611e6c60373da11c2edeae1d2554dbdb7b1bf3
2017-06-07 21:38:07 +00:00
carnil@debian.org
08ee88750d Fix spelling errors
FossilOrigin-Name: 3d98282a2de17a00fbd1c479334205960c6de1f82ac27bf96190adfbd4b91927
2016-03-05 08:00:00 +00:00
ecea49605e Added tag v1.3.2 for changeset aa4172c204d4
FossilOrigin-Name: 32ca44838140ea6061770c1113580bc77e9b4c766cb9813b2920607ec1285035
2016-01-13 19:14:25 +00:00
78acc1876e Add a "real" change log.
FossilOrigin-Name: 0bcc73d6482d57d4ee257d8354589ffe96947a32cc1394b24477283253b9c643
2016-01-13 19:14:17 +00:00
9b6a021ce2 README.md edited online with Bitbucket
FossilOrigin-Name: fc6ce06d556d3e243e381ac6dba904c25b002d7c1c1ad7979f96f4539f17708d
2016-01-12 08:22:14 +00:00
62022fe71c eval optional modules in blocks instead of strings.
FossilOrigin-Name: 20f5040a25392e4f124dccafcea60132df79c4aa7989f7b2b9094a1c70e77032
2016-01-12 08:16:33 +00:00
ef6d1fb0c2 README.md edited online with Bitbucket
FossilOrigin-Name: 002e575093a0a8b2ffb6e70d98040ff5ffe56ea32496994a95a9e01bd7b1e944
2016-01-12 07:20:37 +00:00
96f53d6877 README.md edited online with Bitbucket
FossilOrigin-Name: 8ad350da494411b4c2db795065c667e6f61f921304ce3fc1278d88dd02d2e466
2016-01-12 07:17:05 +00:00
2c4f0e59c1 Fix anonymous binds when SASL is not used.
Reported by Landry Breuil <landry@rhaalovely.net>.

FossilOrigin-Name: 23f9ea8c4491a0e4548d318253e0358cf1a7218f2d5b604ff58a17c368fc3cc5
2016-01-11 20:28:22 +00:00
f5d2977981 Update the contributors file.
FossilOrigin-Name: 0fea8b7727b73576b66a86e43e50db2447cf514dbd80ecb0bd14984e0a8ecf27
2015-12-08 08:55:47 +00:00
d125279f9b Allow the period character when moving an entry by full DN.
Reported by Carlos Jnr <carlos.jnr@gmail.com>.

FossilOrigin-Name: aebc78b1ae3cb4f0ca7f424d5d81b18f75fd8bab8d3ada7ace022729c5d9d84f
2015-12-08 08:54:13 +00:00
897837b463 Break LCS diffing to its own function. Minor style tweaks.
FossilOrigin-Name: bbd2a789cb94c5ac0a88f470734d6abfe4b1cbb38c6c17113f0e2430a6663630
2015-12-08 08:35:58 +00:00
andres.goens@tu-dresden.de
b1ff94c067 Allow editor arguments when editing files externally.
FossilOrigin-Name: 6911614adbc752e557e394000ae6a962f1df1de940be499949de0fc5a3787698
2015-12-08 08:35:43 +00:00
mahlon@laika.com
1685c4bbac Added signature for changeset ac3c6d1057d5
FossilOrigin-Name: 8fe84cde719011ec437c0cf8e8246d0859931836cd7bb7271615e366563a09d6
2015-03-04 19:20:59 +00:00
44cecd1e78 Added tag v1.3.1 for changeset 7b7810fee305
FossilOrigin-Name: 5400e005e5d85e46a3229143f7979f771cf7e4fbe7520829ceea063110a2c166
2015-03-04 19:19:07 +00:00
948bacb6f2 Bump version and copyright.
FossilOrigin-Name: 7197e8cdefcf0111930655539bfe858b847a1a5396adc2dbc547b808632c1e63
2015-03-04 19:18:24 +00:00
mahlon@laika.com
c2ac4d9702 Use the system tempdir instead of hardcoding /tmp.
FossilOrigin-Name: 5ce69918bb8eb72b8b96c574ab8572aefeba075de38d1ea89552f3d61fb04034
2014-12-17 00:30:08 +00:00
mahlon@laika.com
ae6677122c Added signature for changeset ceb8bd75e05b
FossilOrigin-Name: 0062d617a87be95c25c009d12fb46634f0fef0d1725551d719eec4b084181d58
2014-12-04 22:15:24 +00:00
mahlon@laika.com
8404421e46 Added tag v1.3.0 for changeset b3b840a4b56c
FossilOrigin-Name: cd04caf1a626c49a1476a0f5e409f2b9df5fe22a68a8d04a9ec5969d8d97bfb5
2014-12-04 22:15:17 +00:00
mahlon@laika.com
fb34a4b020 Minor style cleanups, version bump.
FossilOrigin-Name: 57f9fdc9c093cdb13c45a219d0a56902b9d6b23b6f82adf5ed5c08855753dc6a
2014-12-04 22:15:09 +00:00
dennis.kaarsemaker@booking.com
7cc910744f Add a 'less' command, that does the same as cat, but uses a pager.
To avoid code duplication, refactor run_cat to be a thin wrapper around a
common function called by both run_cat and run_less.

FossilOrigin-Name: 28a0cda242c8cc11dcb8e5de781b0e52308808799afc012cc33651990da43b4f
2014-12-03 08:47:25 +00:00
mahlon@laika.com
d6d0a5f8b0 Branch merge.
FossilOrigin-Name: 314b9504a2bca796e18278fecbe12a6bc55d7ace9bfa4d06b0f9217d627af271
2014-08-11 18:25:33 +00:00
mahlon@laika.com
91403cd12e Added signature for changeset b220dc774937
FossilOrigin-Name: 89aca4572f50e5f718160d4861bd3f6f6393ea4b37ac1f0bbb4a2593f936879a
2014-08-11 18:19:42 +00:00
mahlon@laika.com
e23b84745f Added tag 1.2.0 for changeset 1a480ba231b6
FossilOrigin-Name: 19a093b27dd8add32ed7ea6c410d017bea9f41b451df61cbb071285e5760a271
2014-08-11 18:19:39 +00:00
dennis.kaarsemaker@booking.com
069692cbe0 Explicitly disable wrapping when writing to file, leaving it up to the
user's editor.  No reason to have shelldap and editor wrap battles.
Dennis Kaarsemaker <dennis.kaarsemaker@booking.com>

FossilOrigin-Name: 574bf5133459a4354682e6db80b0c87a907d124aca3aeaebd17b1285a64b23b9
2014-08-11 18:19:01 +00:00
mahlon@laika.com
6a5a286c1e Add 'rm' for a fully qualified DN, instead of only working with RDN.
Reported by Lars Tauber <taeuber@bbaw.de>.

FossilOrigin-Name: 018facf53aa8b6da5181afc3dafd8f02bb4274fd162cb430f91b96acb7041c78
2014-08-11 18:07:00 +00:00
ace917b5c4 Fix the pod so it can build without complaint under perl 5.20, bump to
v1.1.1.  Patch from Kurt Jaeger <pi@FreeBSD.org>.

FossilOrigin-Name: 95320a4ea236ffb3578db59eb7898138404fa7b7427139d8f7e555e41b7dfcc5
2014-06-23 15:17:18 +00:00
3e12dd5456 Added tag 1.1.0 for changeset e1728adb2561
FossilOrigin-Name: 85919f3bed10213c0b937d63c89990d97e73c148cc69048acf136a7a7ac95af6
2014-06-21 20:36:44 +00:00