@blockforfun/plugin-git
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [3.0.0](https://github.com/blockforfun/cli/compare/@blockforfun/plugin-git@2.0.0...@blockforfun/plugin-git@3.0.0) (2018-11-27) | ||
### Code Refactoring | ||
* Relocate files in and remove lib folder ([901ebb5](https://github.com/blockforfun/cli/commit/901ebb5)) | ||
### BREAKING CHANGES | ||
* This changes paths in plugin-git | ||
# [2.0.0](https://github.com/blockforfun/cli/compare/@blockforfun/plugin-git@1.1.3...@blockforfun/plugin-git@2.0.0) (2018-11-27) | ||
@@ -8,0 +24,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"version":"2.0.0","commands":{"list:json":{"id":"list:json","description":"lists entries in json format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["ls:json"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"target","description":"path to target text file"}]},"list:text":{"id":"list:text","description":"lists entries in text format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["ls","ls:text"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"target","description":"path to target text file"}]},"read:json":{"id":"read:json","description":"reads entries in json format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["get:json"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"path","description":"path to git file","required":true},{"name":"target","description":"path to target text file"}]},"read:text":{"id":"read:text","description":"reads entries in text format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["get","get:text"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"path","description":"path to git file","required":true},{"name":"target","description":"path to target text file"}]}}} | ||
{"version":"3.0.0","commands":{"list:json":{"id":"list:json","description":"lists entries in json format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["ls:json"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"target","description":"path to target text file"}]},"list:text":{"id":"list:text","description":"lists entries in text format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["ls","ls:text"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"target","description":"path to target text file"}]},"read:json":{"id":"read:json","description":"reads entries in json format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["get:json"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"path","description":"path to git file","required":true},{"name":"target","description":"path to target text file"}]},"read:text":{"id":"read:text","description":"reads entries in text format from a BlockFor.fun git registry","pluginName":"@blockforfun/plugin-git","pluginType":"core","aliases":["get","get:text"],"flags":{"ref":{"name":"ref","type":"option","char":"r","description":"git ref to read from","default":"refs/heads/master"},"spec":{"name":"spec","type":"option","char":"s","description":"git refspec to fetch","default":"refs/heads/*:refs/heads/*"},"fetch":{"name":"fetch","type":"option","char":"f","description":"git fetch repository URL"}},"args":[{"name":"source","description":"git source repository URL or path","required":true},{"name":"path","description":"path to git file","required":true},{"name":"target","description":"path to target text file"}]}}} |
{ | ||
"name": "@blockforfun/plugin-git", | ||
"description": "BlockFor.fun CLI git plugin", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"author": "Mikael Karon <mikael@karon.se>", | ||
@@ -66,3 +66,3 @@ "bugs": "https://github.com/blockforfun/cli/issues", | ||
}, | ||
"gitHead": "6868e35a8ba418b8ff50e0a959265fbfd80751ea" | ||
"gitHead": "17bfb9aea39eaf8c7c70a75b821f6e9f916edf48" | ||
} |
@@ -13,12 +13,8 @@ @blockforfun/plugin-git | ||
<!-- toc --> | ||
* [Usage ](#usage) | ||
* [Commands ](#commands) | ||
<!-- tocstop --> | ||
* [Usage ](#usage) | ||
* [Commands ](#commands) | ||
<!-- tocstop --> | ||
* [Usage](#usage) | ||
* [Commands](#commands) | ||
<!-- tocstop --> | ||
# Usage | ||
<!-- usage --> | ||
@@ -30,3 +26,3 @@ ```sh-session | ||
$ oclif-example (-v|--version|version) | ||
@blockforfun/plugin-git/2.0.0 win32-x64 node-v10.10.0 | ||
@blockforfun/plugin-git/3.0.0 win32-x64 node-v10.10.0 | ||
$ oclif-example --help [COMMAND] | ||
@@ -38,15 +34,5 @@ USAGE | ||
<!-- usagestop --> | ||
```sh-session | ||
$ npm install -g @blockforfun/plugin-git | ||
$ oclif-example COMMAND | ||
running command... | ||
$ oclif-example (-v|--version|version) | ||
@blockforfun/plugin-git/1.1.3 win32-x64 node-v10.10.0 | ||
$ oclif-example --help [COMMAND] | ||
USAGE | ||
$ oclif-example COMMAND | ||
... | ||
``` | ||
<!-- usagestop --> | ||
# Commands | ||
<!-- commands --> | ||
@@ -79,3 +65,3 @@ * [`oclif-example list:json SOURCE [TARGET]`](#oclif-example-listjson-source-target) | ||
_See code: [src\commands\list\json.js](https://github.com/blockforfun/cli/blob/v2.0.0/src\commands\list\json.js)_ | ||
_See code: [src\commands\list\json.js](https://github.com/blockforfun/cli/blob/v3.0.0/src\commands\list\json.js)_ | ||
@@ -104,3 +90,3 @@ ## `oclif-example list:text SOURCE [TARGET]` | ||
_See code: [src\commands\list\text.js](https://github.com/blockforfun/cli/blob/v2.0.0/src\commands\list\text.js)_ | ||
_See code: [src\commands\list\text.js](https://github.com/blockforfun/cli/blob/v3.0.0/src\commands\list\text.js)_ | ||
@@ -129,3 +115,3 @@ ## `oclif-example read:json SOURCE PATH [TARGET]` | ||
_See code: [src\commands\read\json.js](https://github.com/blockforfun/cli/blob/v2.0.0/src\commands\read\json.js)_ | ||
_See code: [src\commands\read\json.js](https://github.com/blockforfun/cli/blob/v3.0.0/src\commands\read\json.js)_ | ||
@@ -155,53 +141,3 @@ ## `oclif-example read:text SOURCE PATH [TARGET]` | ||
_See code: [src\commands\read\text.js](https://github.com/blockforfun/cli/blob/v2.0.0/src\commands\read\text.js)_ | ||
_See code: [src\commands\read\text.js](https://github.com/blockforfun/cli/blob/v3.0.0/src\commands\read\text.js)_ | ||
<!-- commandsstop --> | ||
* [`oclif-example list:json SOURCE [TARGET]`](#oclif-example-listjson-source-target) | ||
* [`oclif-example list:text SOURCE [TARGET]`](#oclif-example-listtext-source-target) | ||
## `oclif-example list:json SOURCE [TARGET]` | ||
lists entries in json format from a BlockFor.fun git registry | ||
``` | ||
USAGE | ||
$ oclif-example list:json SOURCE [TARGET] | ||
ARGUMENTS | ||
SOURCE git source repository URL or path | ||
TARGET path to target json file | ||
OPTIONS | ||
-f, --fetch=fetch git fetch repository URL | ||
-r, --ref=ref [default: refs/heads/master] git ref to read from | ||
-s, --spec=spec [default: refs/heads/*:refs/heads/*] git refspec to fetch | ||
ALIASES | ||
$ oclif-example ls:json | ||
``` | ||
_See code: [src\commands\list\json.js](https://github.com/blockforfun/cli/blob/v1.1.3/src\commands\list\json.js)_ | ||
## `oclif-example list:text SOURCE [TARGET]` | ||
lists entries in text format from a BlockFor.fun git registry | ||
``` | ||
USAGE | ||
$ oclif-example list:text SOURCE [TARGET] | ||
ARGUMENTS | ||
SOURCE git source repository URL or path | ||
TARGET path to target json file | ||
OPTIONS | ||
-f, --fetch=fetch git fetch repository URL | ||
-r, --ref=ref [default: refs/heads/master] git ref to read from | ||
-s, --spec=spec [default: refs/heads/*:refs/heads/*] git refspec to fetch | ||
ALIASES | ||
$ oclif-example ls | ||
$ oclif-example ls:text | ||
``` | ||
_See code: [src\commands\list\text.js](https://github.com/blockforfun/cli/blob/v1.1.3/src\commands\list\text.js)_ | ||
<!-- commandsstop --> |
const {createWriteStream} = require('fs') | ||
const GitCommand = require('../../lib/git-command') | ||
const {MemRepo, FsRepo} = require('../../lib/repo') | ||
const GitCommand = require('../../git-command') | ||
const {MemRepo, FsRepo} = require('../../repo') | ||
@@ -5,0 +5,0 @@ class ListTextCommand extends GitCommand { |
const {createWriteStream} = require('fs') | ||
const {blobToText} = require('@es-git/object-mixin') | ||
const GitCommand = require('../../lib/git-command') | ||
const {MemRepo, FsRepo} = require('../../lib/repo') | ||
const GitCommand = require('../../git-command') | ||
const {MemRepo, FsRepo} = require('../../repo') | ||
@@ -6,0 +6,0 @@ class ReadTextCommand extends GitCommand { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
20942
137