Paul Beckingham
81844753fd
CLI2: Removed unused include
2015-06-14 17:48:41 -04:00
Paul Beckingham
778bd4ae2f
CLI2: Simplified A2::dump by removing useless node name
2015-06-14 17:47:53 -04:00
Paul Beckingham
68ac07080c
CLI2: ::findCommand now return a bool indicating what happened.
2015-06-14 17:45:18 -04:00
Paul Beckingham
9af18183c9
CLI2: Eliminate useless ::disqualifySugarFree
2015-06-14 16:46:38 -04:00
Paul Beckingham
0aff903024
CLI2: Simplified all parsing by removing terminator considerations
2015-06-14 16:39:03 -04:00
Paul Beckingham
2cab600674
CLI2: Added ::handleTerminator
...
- CLI2::handleTerminator removes all terminator arguments it finds
and downgrades all subsequent arguments to Lexer::Type::word. This
simplifies all further processing.
2015-06-14 16:33:34 -04:00
Paul Beckingham
370df8e07f
CLI2: Added A::A default ctor
2015-06-14 16:32:44 -04:00
Paul Beckingham
d1e7537e76
CLI2: Simplified ::findCommand
2015-06-14 15:38:27 -04:00
Paul Beckingham
cacc427cbd
CLI2: ADded ::findCommand.
2015-06-14 15:29:40 -04:00
Paul Beckingham
9d5a10bd89
CLI2: Added ::lexArguments to perform *all* lexing
2015-06-14 15:27:05 -04:00
Paul Beckingham
ab367145c6
CLI2: Added ::exactMatch.
2015-06-14 15:11:21 -04:00
Paul Beckingham
ad69f84794
CLI2: Added ::canonicalize
2015-06-14 15:05:03 -04:00
Paul Beckingham
addcbe15d5
CLI2: Removed unnecessary TW and CALENDAR tags
2015-06-14 14:21:55 -04:00
Paul Beckingham
c305768ed8
CLI2: Now relies on Lexer::Type::separator, rather than literal "--".
2015-06-14 14:14:27 -04:00
Paul Beckingham
078e9fe751
CLI2: Tagging the binary as 'ORIGINAL' is no longer useful
2015-06-14 14:13:51 -04:00
Paul Beckingham
e701d6d607
CLI2: Eliminated unused ::removeAttribute.
2015-06-14 14:13:02 -04:00
Paul Beckingham
d43ca96056
CLI2: aliasExpansion & argv[0] handling
...
- Added ::handleArg0 method to clean up ::analyze.
- Implemented ::aliasExpansion, which now applies to lexemes, not full command
line arguments.
2015-06-14 09:28:20 -04:00
Paul Beckingham
de23fc3972
CLI2: Removed obsolete methods.
2015-06-14 09:13:39 -04:00
Paul Beckingham
1d4a532ea2
CLI2: Implemented ::findOverrides relying on Lexer::Type
2015-06-13 16:51:14 -04:00
Paul Beckingham
a433ca308a
CLI2: Implemented A2::attribute for reading arg atts
2015-06-13 16:50:34 -04:00
Paul Beckingham
e159c838ad
CLI2: All args lexed
...
- All arguments now lexed.
- A2::dump now includes Lexer::Type.
2015-06-13 16:36:26 -04:00
Paul Beckingham
92a9ce732c
CLI2: Special handling of argv[0], and subsequent args
2015-06-13 16:34:24 -04:00
Paul Beckingham
7060c82767
CLI2: The ::analyze framework is in place
...
- Now the CLI2::analyze framework is in place, the new implementation of arg
analysis can be built. This algorithm first stores added arguments as-is, then
processes them into lexemes, relying on Lexer::Type. Any new arguments added
invalidate prior analysis.
2015-06-13 15:16:43 -04:00
Paul Beckingham
59429e9af8
CLI2: Implemented A2::tag/hasTag
2015-06-13 15:09:20 -04:00
Paul Beckingham
657d5b8310
CLI2: Added CLI2::dump and A2::dump methods.
2015-06-13 15:01:20 -04:00
Paul Beckingham
50cd2968b9
CLI2: A2 now stores Lexer::Type.
2015-06-13 14:45:19 -04:00
Paul Beckingham
485899b0c5
CLI2: Begun ::analyze method
...
- Renamed A to A2, to avoid collisions for now.
- Added A2::attribute, ctor, dtor.
- Stubbbed CLI2::analyze.
2015-06-13 14:34:25 -04:00
Paul Beckingham
23786515f9
CLI2: Implemented simple argument capture, with no processing.
2015-06-13 14:13:19 -04:00
Paul Beckingham
ec5876d56b
CLI2: Aliases captured.
...
- CLI2::alias now captures all alias definitions from Context::Config.
2015-06-13 14:02:18 -04:00
Paul Beckingham
22765a70cb
CLI2: Entity capture.
...
- CLI2::entity now captures all the known entities, duplicating the processing
in Context for now.
2015-06-13 13:57:53 -04:00
Paul Beckingham
96493db047
CLI2: Ctor/dtors enabled.
2015-06-13 13:53:35 -04:00
Paul Beckingham
5602413acd
CLI2: Migrated static methods
...
- The old CLI object has three static methods that are used for extracting
information from the command line before parsing takes place. These include
rc.name:value and rc:value and code that applies those overrides to
Context::Config. These methods are moved to CLI2 - being static it makes no
difference where they reside.
- Context::initialize now calls the CLI2 versions only.
2015-06-13 13:44:54 -04:00
Paul Beckingham
ca90893216
CLI2: Static initialization of global settings.
2015-06-13 13:38:19 -04:00
Paul Beckingham
708ddd3804
CLI2: Refactoring CLI to rely completely on the Lexer
2015-06-13 13:35:34 -04:00
Renato Alves
d1d300fc69
basetest: Documentation clarification
2015-06-12 20:20:28 +01:00
Renato Alves
2c4480dc1b
Tests: bug.485 merged with filter.t
2015-06-11 23:42:46 +01:00
Renato Alves
bd3cce7d4b
simpletap: Show more information in expected failures
2015-06-11 23:35:07 +01:00
Renato Alves
6b8dd60b33
Tests: bug.480 merged with filter.t
2015-06-11 23:06:37 +01:00
Renato Alves
a7e502395b
Fix holiday for International Women's Day in BY and RU
2015-06-11 13:37:01 +01:00
Renato Alves
b763ce012c
Tests: One more CYGWIN specific skipIf
2015-06-11 11:16:49 +01:00
Paul Beckingham
b138b278b5
tw-1469: Updated test to use unittest.skipIf().
2015-06-10 20:49:27 -04:00
Renato Alves
afa042fdb4
Tests: Fix due.t failure on cygwin
2015-06-11 01:40:36 +01:00
Renato Alves
f152d14baa
Tests: bug.455.t merged with encoding.t
2015-06-11 01:06:17 +01:00
Renato Alves
116c074c43
Tests: bug.441.t now in python
2015-06-11 00:49:36 +01:00
Renato Alves
f2e32739cf
Tests: bug.440 merged with append.t
2015-06-11 00:46:51 +01:00
Renato Alves
00ee5dd7a3
Tests: Merge bug.438 with sorting.t
2015-06-11 00:35:43 +01:00
Renato Alves
c3423243d8
Tests: Rename self.diag to self.tap and use self.t.diag where applicable
...
Having self.diag and self.t.diag was confusing as one referred to TAP
output (self.diag) while the other referred to "task diagnostics"
self.t.diag.
self.diag is now gone and was replaced by self.tap with the same
behavior.
2015-06-10 23:33:56 +01:00
Renato Alves
cd3a848bad
Tests: bug.425, bug_434 and wait now in python
2015-06-10 23:13:42 +01:00
Renato Alves
4dd09ca13f
Tests: Commented tests are now active and marked as expected failures
2015-06-10 00:11:47 +01:00
Renato Alves
fad867e86b
Tests: due.t, bug.418.t convert. Reorganize filter.t
2015-06-09 23:28:46 +01:00