Skip to content

Commit

Permalink
chore: add comments for all packages (#350)
Browse files Browse the repository at this point in the history
Co-authored-by: rick <[email protected]>
  • Loading branch information
LinuxSuRen and LinuxSuRen authored Feb 8, 2023
1 parent ba52e6c commit ab09413
Show file tree
Hide file tree
Showing 21 changed files with 55 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package cmd provides the CLI commands
package cmd
2 changes: 2 additions & 0 deletions pkg/common/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package common provides some common functions for the whole project.
package common
2 changes: 2 additions & 0 deletions pkg/compress/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package compress provides the compress and uncompress functions.
package compress
3 changes: 3 additions & 0 deletions pkg/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package pkg provides the features to interal and external users.
// All CLI related logics should not be in this package.
package pkg
3 changes: 3 additions & 0 deletions pkg/exec/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package exec is the wrapper of os/exec package.
// The main purpose of this package is to make unit test be easier.
package exec
2 changes: 2 additions & 0 deletions pkg/installer/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package installer is the core part of the software package installation.
package installer
3 changes: 3 additions & 0 deletions pkg/log/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package log provides the core logger functions.
// Basically, this is a wrapper of log.Logger
package log
2 changes: 2 additions & 0 deletions pkg/net/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package net provides the core download functions
package net
3 changes: 3 additions & 0 deletions pkg/os/apk/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package apk provides the common functions to install a package via apk.
// See also https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper.
package apk
3 changes: 3 additions & 0 deletions pkg/os/apt/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package apt provides the common functions to install a package via apt.
// See also https://en.wikipedia.org/wiki/APT_(software).
package apt
3 changes: 3 additions & 0 deletions pkg/os/brew/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package brew provides the common functions to install a package via brew.
// See also https://brew.sh/.
package brew
2 changes: 2 additions & 0 deletions pkg/os/core/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package core provides the core structs about the os-related package manager.
package core
3 changes: 3 additions & 0 deletions pkg/os/dnf/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package dnf provides the common function of dnf package manager.
// See also https://en.wikipedia.org/wiki/DNF_(software).
package dnf
3 changes: 3 additions & 0 deletions pkg/os/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package os provides a generic installer for all platforms.
// See the different native packages in the sub-packages, such as: apt, apk, brew etc.
package os
2 changes: 2 additions & 0 deletions pkg/os/docker/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package docker provides the way to install a package via docker CLI.
package docker
2 changes: 2 additions & 0 deletions pkg/os/fake/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package fake provides functions for unit test.
package fake
4 changes: 4 additions & 0 deletions pkg/os/generic/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Package generic provides the generic packge installation.
// It does not care about the real package mananger. Because
// It will accept arbitrary command line.
package generic
3 changes: 3 additions & 0 deletions pkg/os/npm/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package npm provides the common usage of npm.
// See also https://www.npmjs.com/.
package npm
3 changes: 3 additions & 0 deletions pkg/os/snap/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package snap provides the common usage of snap package manager.
// See also https://snapcraft.io/.
package snap
3 changes: 3 additions & 0 deletions pkg/os/yum/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package yum provides the common usage of yum package manager.
// See also https://en.wikipedia.org/wiki/Yum_(software).
package yum
2 changes: 2 additions & 0 deletions pkg/version/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package version provides the functions which related to version parse.
package version

0 comments on commit ab09413

Please sign in to comment.