amazon-archives / awsmobile-cli

CLI experience for Frontend developers in the JavaScript ecosystem.
Apache License 2.0
142 stars 35 forks source link

Add sync to dev flag as a flag to awsmobile pull #143

Closed calebfroese closed 6 years ago

calebfroese commented 6 years ago

Issue #, if available:

142

Description of changes:

The $ awsmobile pull command now accepts -d/--sync-dev set the syncToDevFlag, which is responsible for prompting the user on how to synchronise local files with those in AWS.

Usage

The default value remains 0, "prompt for confirmation" $ awsmobile pull

Manually specify the syncToDevFlag to not sync to backend $ awsmobile pull --sync-dev=-1 or $ awsmobile pull -d=-1

etc

Help

The output from $ awsmobile pull --help is now:


  Usage: awsmobile-pull [options]

  pull the latest details of the awsmobile project from the cloud

  Options:

    -d, --sync-dev <value>  synchronize contents in #current-backend-info/ with the latest in the aws cloud (default: 0)
    -h, --help              output usage information

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-io commented 6 years ago

Codecov Report

Merging #143 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #143   +/-   ##
=======================================
  Coverage   80.85%   80.85%           
=======================================
  Files          85       85           
  Lines        5700     5700           
  Branches      914      914           
=======================================
  Hits         4609     4609           
  Misses        932      932           
  Partials      159      159

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7869de2...c99d405. Read the comment docs.