Skip to content

Commit

Permalink
renamed massive.neko to massive.sys
Browse files Browse the repository at this point in the history
  • Loading branch information
misprintt committed Feb 16, 2013
1 parent be53625 commit 15a7857
Show file tree
Hide file tree
Showing 38 changed files with 112 additions and 112 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@ mlib provides a lightweight command based structure for rapidly developing comma
Mlib includes several haxe and neko src packages:

* massive.haxe (cross platform haxe APIs)
* massive.neko (neko specific APIs for file access, command line, haxe and haxelib integration)
* massive.sys (neko specific APIs for file access, command line, haxe and haxelib integration)
* massive.mlib (command line tool (mlib) for managing development and deployment of haxelib projects)


### Feature highlights

**Expanded File APIs**

See [massive.neko.io.File](https://github.com/massiveinteractive/MassiveLib/blob/master/neko/src/massive/neko/io/File.hx)
See [massive.sys.io.File](https://github.com/massiveinteractive/MassiveLib/blob/master/neko/src/massive/neko/io/File.hx)

* recursive dir copy/move/delete
* platform safe resolution of file paths


**Simplified access to command line**

See [massive.neko.cmd.Console](https://github.com/massiveinteractive/MassiveLib/blob/master/neko/src/massive/neko/cmd/Console.hx)
See [massive.sys.cmd.Console](https://github.com/massiveinteractive/MassiveLib/blob/master/neko/src/massive/neko/cmd/Console.hx)

* separation of raw system arg into arguments ('foo') and options (-foo bar)
* automatic detection and updating of working directory when running in haxelib libraries
* convenience methods for prompting user input

**Command line tool runner**
See [massive.neko.cmd.CommandLineRunner](https://github.com/massiveinteractive/MassiveLib/blob/master/neko/src/massive/neko/cmd/CommandLineRunner.hx)
See [massive.sys.cmd.CommandLineRunner](https://github.com/massiveinteractive/MassiveLib/blob/master/neko/src/massive/neko/cmd/CommandLineRunner.hx)

* lightweight interface for mapping command line arguments to Command classes
* automatic generation of command line *help* and command and
Expand Down
Binary file removed mlib.n
Binary file not shown.
2 changes: 1 addition & 1 deletion neko/build.hxml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Neko
-main massive.neko.AllClasses
-main massive.sys.AllClasses
-cp src
-cp ../haxe/src
-neko ../bin/neko_all.n
26 changes: 13 additions & 13 deletions neko/src/massive/neko/AllClasses.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@
*
****/

package massive.neko;
package massive.sys;

import massive.neko.util.ZipUtil;
import massive.neko.util.PathUtil;
import massive.neko.io.File;
import massive.neko.io.FileException;
import massive.neko.io.FileSys;
import massive.neko.cmd.ICommand;
import massive.neko.cmd.CommandLineRunner;
import massive.neko.cmd.Command;
import massive.neko.cmd.Console;
import massive.neko.haxe.HaxeWrapper;
import massive.neko.haxelib.Haxelib;
import massive.neko.haxelib.HaxelibTools;
import massive.sys.util.ZipUtil;
import massive.sys.util.PathUtil;
import massive.sys.io.File;
import massive.sys.io.FileException;
import massive.sys.io.FileSys;
import massive.sys.cmd.ICommand;
import massive.sys.cmd.CommandLineRunner;
import massive.sys.cmd.Command;
import massive.sys.cmd.Console;
import massive.sys.haxe.HaxeWrapper;
import massive.sys.haxelib.Haxelib;
import massive.sys.haxelib.HaxelibTools;

@IgnoreCover
class AllClasses
Expand Down
6 changes: 3 additions & 3 deletions neko/src/massive/neko/cmd/Command.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
*
****/

package massive.neko.cmd;
package massive.sys.cmd;

import massive.neko.cmd.Console;
import massive.sys.cmd.Console;
import massive.haxe.log.Log;
import massive.neko.cmd.ICommand;
import massive.sys.cmd.ICommand;
/**
* An abstract base class for Commands
* Includes utility me
Expand Down
10 changes: 5 additions & 5 deletions neko/src/massive/neko/cmd/CommandLineRunner.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
*
****/

package massive.neko.cmd;
package massive.sys.cmd;

import massive.neko.cmd.ICommand;
import massive.neko.cmd.Command;
import massive.sys.cmd.ICommand;
import massive.sys.cmd.Command;

import neko.FileSystem;
import massive.haxe.log.Log;

import massive.neko.io.File;
import massive.neko.cmd.Console;
import massive.sys.io.File;
import massive.sys.cmd.Console;
import neko.vm.Thread;
import neko.Lib;
import neko.Sys;
Expand Down
8 changes: 4 additions & 4 deletions neko/src/massive/neko/cmd/Console.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
*
****/

package massive.neko.cmd;
package massive.sys.cmd;

import massive.neko.io.File;
import massive.neko.io.FileException;
import massive.neko.io.FileSys;
import massive.sys.io.File;
import massive.sys.io.FileException;
import massive.sys.io.FileSys;
import neko.FileSystem;
import neko.vm.Thread;
import neko.Lib;
Expand Down
4 changes: 2 additions & 2 deletions neko/src/massive/neko/cmd/ICommand.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
*
****/

package massive.neko.cmd;
package massive.sys.cmd;

import massive.neko.cmd.Console;
import massive.sys.cmd.Console;
/**
* A command represents a single action or task in the system.
*/
Expand Down
4 changes: 2 additions & 2 deletions neko/src/massive/neko/haxe/HaxeWrapper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
*
****/

package massive.neko.haxe;
package massive.sys.haxe;

import neko.FileSystem;
import neko.io.File;
import massive.neko.io.File;
import massive.sys.io.File;
import neko.vm.Thread;
import neko.Lib;
import neko.Sys;
Expand Down
4 changes: 2 additions & 2 deletions neko/src/massive/neko/haxelib/Haxelib.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
*
****/

package massive.neko.haxelib;
package massive.sys.haxelib;

import haxe.xml.Fast;
import massive.neko.io.File;
import massive.sys.io.File;

class Haxelib
{
Expand Down
6 changes: 3 additions & 3 deletions neko/src/massive/neko/haxelib/HaxelibTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
*
****/

package massive.neko.haxelib;
package massive.sys.haxelib;
import neko.io.Process;
import massive.neko.io.File;
import massive.neko.util.ZipUtil;
import massive.sys.io.File;
import massive.sys.util.ZipUtil;
import massive.haxe.util.RegExpUtil;
class HaxelibTools
{
Expand Down
4 changes: 2 additions & 2 deletions neko/src/massive/neko/io/File.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of Massive Interactive.
*/
package massive.neko.io;
package massive.sys.io;

import neko.io.Path;
import neko.Lib;

import massive.haxe.log.Log;
import massive.neko.util.PathUtil;
import massive.sys.util.PathUtil;
import haxe.PosInfos;

class File
Expand Down
2 changes: 1 addition & 1 deletion neko/src/massive/neko/io/FileException.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
****/

package massive.neko.io;
package massive.sys.io;
import massive.haxe.Exception;
import haxe.PosInfos;

Expand Down
2 changes: 1 addition & 1 deletion neko/src/massive/neko/io/FileSys.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
****/

package massive.neko.io;
package massive.sys.io;

#if haxe_209
import sys.FileSystem;
Expand Down
2 changes: 1 addition & 1 deletion neko/src/massive/neko/util/PathUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
****/

package massive.neko.util;
package massive.sys.util;

class PathUtil
{
Expand Down
6 changes: 3 additions & 3 deletions neko/src/massive/neko/util/ZipUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
*
****/

package massive.neko.util;
package massive.sys.util;

import neko.Lib;
import massive.neko.io.FileSys;
import massive.sys.io.FileSys;
import neko.io.Path;

import neko.zip.Reader;
import neko.zip.Writer;
import haxe.io.Bytes;

import massive.neko.io.File;
import massive.sys.io.File;
import neko.FileSystem;

class ZipUtil
Expand Down
24 changes: 12 additions & 12 deletions neko/test/TestSuite.hx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import massive.munit.TestSuite;

import ExampleTest;
import massive.neko.cmd.CommandLineRunnerTest;
import massive.neko.cmd.CommandTest;
import massive.neko.cmd.ConsoleTest;
import massive.neko.io.FileTest;
import massive.neko.util.PathUtilTest;
import massive.neko.util.ZipUtilTest;
import massive.sys.cmd.CommandLineRunnerTest;
import massive.sys.cmd.CommandTest;
import massive.sys.cmd.ConsoleTest;
import massive.sys.io.FileTest;
import massive.sys.util.PathUtilTest;
import massive.sys.util.ZipUtilTest;

/**
* Auto generated Test Suite for MassiveUnit.
Expand All @@ -21,11 +21,11 @@ class TestSuite extends massive.munit.TestSuite
super();

add(ExampleTest);
add(massive.neko.cmd.CommandLineRunnerTest);
add(massive.neko.cmd.CommandTest);
add(massive.neko.cmd.ConsoleTest);
add(massive.neko.io.FileTest);
add(massive.neko.util.PathUtilTest);
add(massive.neko.util.ZipUtilTest);
add(massive.sys.cmd.CommandLineRunnerTest);
add(massive.sys.cmd.CommandTest);
add(massive.sys.cmd.ConsoleTest);
add(massive.sys.io.FileTest);
add(massive.sys.util.PathUtilTest);
add(massive.sys.util.ZipUtilTest);
}
}
6 changes: 3 additions & 3 deletions neko/test/massive/neko/cmd/CommandLineRunnerMock.hx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package massive.neko.cmd;
package massive.sys.cmd;

import haxe.PosInfos;
import massive.neko.cmd.CommandLineRunner;
import massive.neko.cmd.Console;
import massive.sys.cmd.CommandLineRunner;
import massive.sys.cmd.Console;

class CommandLineRunnerMock extends CommandLineRunner
{
Expand Down
10 changes: 5 additions & 5 deletions neko/test/massive/neko/cmd/CommandLineRunnerTest.hx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package massive.neko.cmd;
package massive.sys.cmd;

import massive.munit.Assert;
import massive.neko.cmd.CommandLineRunner;
import massive.neko.cmd.CommandMock;
import massive.sys.cmd.CommandLineRunner;
import massive.sys.cmd.CommandMock;
import massive.haxe.log.Log;

import massive.neko.cmd.Console;
import massive.neko.cmd.ConsoleMock;
import massive.sys.cmd.Console;
import massive.sys.cmd.ConsoleMock;

class CommandLineRunnerTest
{
Expand Down
2 changes: 1 addition & 1 deletion neko/test/massive/neko/cmd/CommandMock.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package massive.neko.cmd;
package massive.sys.cmd;

import haxe.PosInfos;

Expand Down
2 changes: 1 addition & 1 deletion neko/test/massive/neko/cmd/CommandTest.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package massive.neko.cmd;
package massive.sys.cmd;

import massive.munit.Assert;

Expand Down
4 changes: 2 additions & 2 deletions neko/test/massive/neko/cmd/ConsoleMock.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package massive.neko.cmd;
package massive.sys.cmd;

import massive.neko.io.FileSys;
import massive.sys.io.FileSys;
import haxe.PosInfos;

class ConsoleMock extends Console
Expand Down
6 changes: 3 additions & 3 deletions neko/test/massive/neko/cmd/ConsoleTest.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package massive.neko.cmd;
package massive.sys.cmd;

import massive.neko.io.File;
import massive.neko.io.FileSys;
import massive.sys.io.File;
import massive.sys.io.FileSys;
import massive.munit.Assert;

class ConsoleTest
Expand Down
2 changes: 1 addition & 1 deletion neko/test/massive/neko/cmd/SkippableCommandMock.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package massive.neko.cmd;
package massive.sys.cmd;

import haxe.PosInfos;

Expand Down
8 changes: 4 additions & 4 deletions neko/test/massive/neko/io/FileTest.hx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package massive.neko.io;
package massive.sys.io;

import massive.munit.util.Timer;
import massive.munit.Assert;
import massive.munit.async.AsyncFactory;


import massive.neko.cmd.Console;
import massive.neko.io.File;
import massive.neko.io.FileException;
import massive.sys.cmd.Console;
import massive.sys.io.File;
import massive.sys.io.FileException;

/**
* Auto generated ExampleTest for MassiveUnit.
Expand Down
2 changes: 1 addition & 1 deletion neko/test/massive/neko/util/PathUtilTest.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package massive.neko.util;
package massive.sys.util;

import massive.munit.util.Timer;
import massive.munit.Assert;
Expand Down
8 changes: 4 additions & 4 deletions neko/test/massive/neko/util/ZipUtilTest.hx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package massive.neko.util;
package massive.sys.util;

import massive.munit.util.Timer;
import massive.munit.Assert;
import massive.munit.async.AsyncFactory;

import massive.neko.io.File;
import massive.neko.util.ZipUtil;
import massive.neko.cmd.Console;
import massive.sys.io.File;
import massive.sys.util.ZipUtil;
import massive.sys.cmd.Console;


class ZipUtilTest
Expand Down

0 comments on commit 15a7857

Please sign in to comment.