ekkolon / licensa Goto Github PK
View Code? Open in Web Editor NEWSeamless source code license management from your command line
License: Apache License 2.0
Seamless source code license management from your command line
License: Apache License 2.0
Right now, we are only handling license IDs from the choosealicense repository, yet we could use the spdx crate for that. Additionally, the approach used right now isn't robust and fails validation even though license expressions provided by the user are valid SPDX expressions.
For example, executing the following command fails:
licensa apply --type "MIT or Apache-2.0"
We should allow the user to provide 'imprecise' license ids, since the spdx
crate provides a nice function to infer valid SPDX ids from them.
In cases where the user supplies an imprecise license ID for which one or more valid SPDX ids can be inferred, we should prompt the user to select and confirm the valid license id.
This could look like this:
licensa apply --type "BSD"
...
# Select and confirm license id
Which kind of BSD license would you like to use?:
- BSD-1-Clause
- BSD-2-Clause
- BSD-3-Clause
...etc
Objective:
Implement a --dry-run
flag in the CLI to allow users to simulate the licensing process without making actual changes to files.
Features:
--dry-run
flag for the CLI.--dry-run
flag is used, the CLI should output the intended changes without applying them.Motivation:
CLI Modification:
--dry-run
flag in the CLI parsing logic.Simulation Output:
Documentation:
--dry-run
flag.Testing:
--dry-run
flag functions as expected.This is caused by the exclude
flag: when it's not present in the .licensarc config file or is not provided
Right now, we have functionality split all over the place. Although this is fine for the moment, due to the many changes that are made rapidly to the repo, this is not a viable option for the future.
We should split our code into logical units to reduce complexcity and ultimately improve maintainability.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.