diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index f62d8a4..b650fbe 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -45,19 +45,19 @@ jobs:
- name: Build
run: |
- bazel build --config=windows //cdc_rsync //asset_stream_manager //tests_common //tests_asset_streaming_30 //tests_cdc_rsync
+ bazel build --config=windows //cdc_rsync //cdc_stream //tests_common //tests_cdc_stream //tests_cdc_rsync
- name: Test
run: |
bazel-bin\tests_common\tests_common.exe
- bazel-bin\tests_asset_streaming_30\tests_asset_streaming_30.exe
+ bazel-bin\tests_cdc_stream\tests_cdc_stream.exe
bazel-bin\tests_cdc_rsync\tests_cdc_rsync.exe
bazel test --config=windows --test_output=errors --local_test_jobs=1 `
- //asset_stream_manager/... `
//cdc_fuse_fs/... `
//cdc_rsync/... `
//cdc_rsync/base/... `
//cdc_rsync_server/... `
+ //cdc_stream/... `
//common/... `
//data_store/... `
//fastcdc/... `
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml
index 4d75d54..b1148f7 100644
--- a/.github/workflows/create_release.yml
+++ b/.github/workflows/create_release.yml
@@ -53,19 +53,19 @@ jobs:
- name: Build
run: |
bazel build --config=windows --compilation_mode=opt --copt=/GL `
- //cdc_rsync //asset_stream_manager //tests_common //tests_asset_streaming_30 //tests_cdc_rsync
+ //cdc_rsync //cdc_stream //tests_common //tests_cdc_stream //tests_cdc_rsync
- name: Test
run: |
bazel-bin\tests_common\tests_common.exe
- bazel-bin\tests_asset_streaming_30\tests_asset_streaming_30.exe
+ bazel-bin\tests_cdc_stream\tests_cdc_stream.exe
bazel-bin\tests_cdc_rsync\tests_cdc_rsync.exe
bazel test --config=windows --compilation_mode=opt --copt=/GL --test_output=errors --local_test_jobs=1 `
- //asset_stream_manager/... `
//cdc_fuse_fs/... `
//cdc_rsync/... `
//cdc_rsync/base/... `
//cdc_rsync_server/... `
+ //cdc_stream/... `
//common/... `
//data_store/... `
//fastcdc/... `
@@ -77,7 +77,7 @@ jobs:
run: |
mkdir artifacts
cp bazel-bin/cdc_rsync/cdc_rsync.exe artifacts
- cp bazel-bin/asset_stream_manager/asset_stream_manager.exe artifacts
+ cp bazel-bin/cdc_stream/cdc_stream.exe artifacts
cp LICENSE artifacts
cp README.md artifacts
@@ -91,9 +91,6 @@ jobs:
runs-on: ubuntu-latest
needs: [Build-And-Test-Windows, Build-And-Test-Linux]
steps:
- - name: Test
- run: echo '${{ toJSON(github) }}'
-
- name: Download artifacts
uses: actions/download-artifact@v3
diff --git a/README.md b/README.md
index 3f07af4..6e892a4 100644
--- a/README.md
+++ b/README.md
@@ -143,10 +143,10 @@ The two tools can be built and used independently.
```
* Build Windows components
```
- bazel build --config windows --compilation_mode=opt --copt=/GL //asset_stream_manager
+ bazel build --config windows --compilation_mode=opt --copt=/GL //cdc_stream
```
* Copy the Linux build output files `cdc_fuse_fs` and `libfuse.so` from
- `bazel-bin/cdc_fuse_fs` on the Linux system to `bazel-bin\asset_stream_manager`
+ `bazel-bin/cdc_fuse_fs` on the Linux system to `bazel-bin\cdc_stream`
on the Windows machine.
## Usage
@@ -211,13 +211,13 @@ cdc_rsync C:\path\to\assets\* user@linux.device.com:~/assets -vr
### CDC Stream
-`cdc_stream` consists of a background service called `asset_stream_manager`,
-which has to be started in advance with
+`cdc_stream` consists of a background service, which has to be started in
+advance with
```
-asset_stream_manager
+cdc_stream start-service
```
The service logs to `%APPDATA%\cdc-file-transfer\logs` by default. Try
-`asset_stream_manager --helpfull` to get a list of available flags.
+`cdc_stream --help` to get a list of available flags.
To stream the Windows directory `C:\path\to\assets` to `~/assets` on the Linux
device, run
@@ -235,17 +235,14 @@ cdc_stream stop user@linux.device.com:~/assets
## Troubleshooting
-`cdc_rsync` always logs to the console. By default, the `asset_stream_manager`
-service logs to a timestamped file in `%APPDATA%\cdc-file-transfer\logs`. It can
-be switched to log to console by starting it with `--log_to_stdout`:
+`cdc_rsync` always logs to the console. By default, the `cdc_stream` service
+logs to a timestamped file in `%APPDATA%\cdc-file-transfer\logs`. It can be
+switched to log to console by starting it with `--log-to-stdout`:
```
-asset_stream_manager --log_to_stdout
+cdc_stream start-service --log_to_stdout
```
-Both `cdc_rsync` and `asset_stream_manager` support command line flags to control log
+Both `cdc_rsync` and `cdc_stream` support command line flags to control log
verbosity. Passing `-vvv` prints debug logs, `-vvvv` prints verbose logs. The
debug logs contain all SSH and SCP commands that are attempted to run, which is
very useful for troubleshooting.
-
-`cdc_stream` is just a thin client for the asset streaming service. Nothing ever
-goes wrong with it [citation needed].
diff --git a/all_files.vcxitems b/all_files.vcxitems
index 3b5223b..1fac1d7 100644
--- a/all_files.vcxitems
+++ b/all_files.vcxitems
@@ -15,26 +15,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -145,24 +145,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -244,7 +244,7 @@
-
+
@@ -268,7 +268,7 @@
-
+
diff --git a/asset_stream_manager/.gitignore b/cdc_stream/.gitignore
similarity index 100%
rename from asset_stream_manager/.gitignore
rename to cdc_stream/.gitignore
diff --git a/asset_stream_manager/BUILD b/cdc_stream/BUILD
similarity index 99%
rename from asset_stream_manager/BUILD
rename to cdc_stream/BUILD
index bc9c295..92fe9ba 100644
--- a/asset_stream_manager/BUILD
+++ b/cdc_stream/BUILD
@@ -5,7 +5,7 @@ package(default_visibility = [
])
cc_binary(
- name = "asset_stream_manager",
+ name = "cdc_stream",
srcs = ["main.cc"],
data = [":roots_pem"],
deps = [
diff --git a/asset_stream_manager/asset_stream_config.cc b/cdc_stream/asset_stream_config.cc
similarity index 99%
rename from asset_stream_manager/asset_stream_config.cc
rename to cdc_stream/asset_stream_config.cc
index 3162713..6f66174 100644
--- a/asset_stream_manager/asset_stream_config.cc
+++ b/cdc_stream/asset_stream_config.cc
@@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "asset_stream_manager/asset_stream_config.h"
+#include "cdc_stream/asset_stream_config.h"
#include
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "absl_helper/jedec_size_flag.h"
-#include "asset_stream_manager/base_command.h"
+#include "cdc_stream/base_command.h"
#include "common/buffer.h"
#include "common/path.h"
#include "common/status_macros.h"
diff --git a/asset_stream_manager/asset_stream_config.h b/cdc_stream/asset_stream_config.h
similarity index 94%
rename from asset_stream_manager/asset_stream_config.h
rename to cdc_stream/asset_stream_config.h
index b240e51..83cda5d 100644
--- a/asset_stream_manager/asset_stream_config.h
+++ b/cdc_stream/asset_stream_config.h
@@ -14,15 +14,15 @@
* limitations under the License.
*/
-#ifndef ASSET_STREAM_MANAGER_ASSET_STREAM_CONFIG_H_
-#define ASSET_STREAM_MANAGER_ASSET_STREAM_CONFIG_H_
+#ifndef CDC_STREAM_ASSET_STREAM_CONFIG_H_
+#define CDC_STREAM_SET_STREAM_CONFIG_H_
#include