1to3

command module
v0.0.0-...-23666ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

README

1to3

Utilities to help migrate from FOSSA CLI v1 to v3.

Installation

For now, you will need Go 1.17 installed on your machine.

git clone git@github.com:fossas/1to3.git
cd 1to3
go run main.go

Usage

# Example directory
$ tree
.
├── my-test-directory
│   ├── package.json
│   └── requirements.txt
└── src
    └── Gemfile

2 directories, 3 files

# Targets detected by CLI v3
$ fossa list-targets
[ INFO] Found project: bundler@src/
[ INFO] Found target: bundler@src/
[ INFO] Found project: npm@my-test-directory/
[ INFO] Found target: npm@my-test-directory/
[ INFO] Found project: setuptools@my-test-directory/
[ INFO] Found target: setuptools@my-test-directory/

# Targets detected by CLI v1
$ fossa1.1.6 init
WARNING Filtering out suspicious module: my-test-directory (my-test-directory)
WARNING Filtering out suspicious module: my-test-directory (my-test-directory)

# Generated CLI v3 configuration block to exclude targets implicitly excluded by v1
$ fossa-1to3 targets
targets:
  exclude:
  - type: npm
    path: my-test-directory
  - type: pip
    path: my-test-directory

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL