dcli_core 0.0.6-dev.1 copy "dcli_core: ^0.0.6-dev.1" to clipboard
dcli_core: ^0.0.6-dev.1 copied to clipboard

outdated

The core asyncronous functions used by dcli. DCli uses waitFor to eliminate async code in the DCli libraries which precludes DCli's usage in non-cli apps (e.g. you can't use it in flutter). The aim of [...]

0.0.6-dev.1 #

  • ENH: Moved to using logging package for log output.

0.0.5 #

  • simplified the basic template.
  • add workingDirectory support to toParagraph and toList
  • improved dcli tab completion for the compile command by only showing files that end in .dart.
  • Improved the stacktrack logging when using waitForEx. If verbose is on we now log a fully merged stack trace.
  • Added a tool to make it easy to launch a script in profile mode.
  • Fixed a memory consumption problem caused by find.forEach not pausing the stream.
  • Made the bytesAsReadable static method of Format into a instance method for consistency.
  • Cleaned up the top level directory post dcli_core merge.
  • Implemented LimitStreamController to stop the find command causing us to rum out of memory.
  • restructured templates to be in a separate package and now use dcli pack to ship them.
  • modified activate_local so you can run it from within the project.
  • experiements in incremental compilation. Unfortunately you can only incrementally compile to a dill.
  • BREAKING: chmod now calls the posix chmod if posix is available. Change the order of the chmod args and made permission a named argument to match chown args.
  • renamed the resources directory to resource and the templates directory to template in keeping with the dart directory naming conventions.

0.0.4 #

  • Added method Env().exists which checks if an environment variable exists.

0.0.3 #

  • removed unecessary code from line_file
  • fix: tail was deadlocking when straming.
  • Fix: find was consuming larges amounts of memory as it would keep scanning even when the consumer was paused. We now pausing scanning to allow the consumer to keep up.
  • Fixed a bug in copy_tree. We were prematurely canceling the subscription with the result the tree wasn't being copied.
  • added missing sub.cancel to replace function.
  • Added missing subscription cancellation.
  • Breaking: changed exists, isFile, isDirectory, isLink to synchronous functions due to slow async lint warning recommending use of Sync versions for performance.
  • removed call to slow async method in touch
  • copy_tree : Added missing close for the controller. Possible memory leak.
  • Breaking: change lastModified to return syncrhonously by recommendation of dart lints - slow async.
  • changed the PATH global variable to include 'empty' paths because on linux and empty path means the current directory.
  • added the overwrite flag value to the verbose logging for copy and move.

0.0.2 #

  • isLink was failing as we were missing the followLinks: false argument which caused it to return the type of the linked entity rather than the link.
  • Fixed the X11 bug again. The find command mustn't traverse down symlinks as this can cause looping.
  • Fixed stream listener logic in copyTree, replace and tail. You need to pause the subscription whilst processing an event otherwise events occur simultenaously which is not good thing when manipulating files.
  • removed unnecessary await in backup.dart
  • increased timeout for find_test so it could complete a full system scan.
  • changed the witOpenLineFile method to use an async action as we were getting overlapping io operations because we were not waiting for the prior opration to finish.
  • Moved to using the stacktrace_impl package.
  • changed to async File.copy
  • ported copy fixes from pre-core copy.
  • Added asList method to the StackList class.

1.0.0 #

  • Initial version.
0
likes
0
pub points
64%
popularity

Publisher

verified publisheronepub.dev

The core asyncronous functions used by dcli. DCli uses waitFor to eliminate async code in the DCli libraries which precludes DCli's usage in non-cli apps (e.g. you can't use it in flutter). The aim of dcli_core is to expose a significant set of the core dcli functions as async version so that dcli_core can be used in any project. DCli will then rely on dcli_core for core parts of its implemenation to avoid duplicating code between the two packages.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

async, circular_buffer, collection, crypto, di_zone2, logging, meta, path, stacktrace_impl, uuid

More

Packages that depend on dcli_core