v0.13.0
Hello World Again
This is a special version, starting from this version we are trying to give DevStream a different life. We apologize that we don't have time to provide detailed documentation yet, but don't worry, what should be there will be available soon.
First Command
dtm patch -h
patch will take a patch file containing any of the four forms of difference listing
produced by the diff program and apply those differences to an original file,
producing a patched version. If patchfile is omitted, or is a hyphen,
the patch will be read from the standard input.
- dtm patch file.patch
- dtm patch file.patch -ojson
Usage:
dtm patch [flags]
Flags:
-h, --help help for patch
Global Flags:
--config string config file (default is $HOME/.devstream.yaml)
--debug debug level log
-o, --output string Output format. One of: json|yaml|raw (default "raw")
An Example
- original-772630176
Hello, world!
This is the original file.
- patch-2027931350
--- original-772630176
+++ new-file
@@ -1,2 +1,2 @@
Hello, world!
-This is the original file.
+This is the patched file.
- ./dtm patch patch-2027931350 -o json
{"status":0,"message":"OK","log":""}
- ./dtm patch patch-2027931350 --debug
2023-04-26 16:37:39 ℹ [INFO] Log level is: debug.
2023-04-26 16:37:39 ℹ [INFO] Patching file: patch-2027931350
2023-04-26 16:37:40 ℹ [INFO] Successfully patched the file
2023-04-26 16:37:40 λ [DEBUG] Format: raw