Skip to content

Commit

Permalink
Updates project to version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eliherm committed Jun 19, 2022
1 parent a6dbc50 commit 229d15b
Show file tree
Hide file tree
Showing 9 changed files with 716 additions and 463 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf

# CLion
.idea/
cmake-build-debug/
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.17)
project(linkBase VERSION 0.2.0 LANGUAGES C)

set(CMAKE_C_STANDARD 99)

add_executable(linkBase main.c linkedList.c linkedList.h)
add_executable(test test.c linkedList.c linkedList.h)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Elikem Hermon
Copyright (c) 2020 Elikem Hermon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
54 changes: 14 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,22 @@
# LinkBase

[![GitHub version](https://badge.fury.io/gh/eliherm%2FLinkBase.svg)](https://badge.fury.io/gh/eliherm%2FLinkBase)

In memory database for storing collections of integers. Collections are stored using linked lists.

## Usage

### Create
Create a new collection

```
> create [collection name]
```

### Prepend
Add a value to the start of a collection

```
> prepend [collection name] [value]
```

### Append
Add a value to the end of a collection

```
> append [collection name] [value]
```

### View
View all collections

```
> view [--all / -a]
```

View a single collection

```
> view [--one / -o] [collection name]
```

### Delete
Delete a specified collection

```
> delete [collection name]
The following operations can be performed on a collection.
```
view prints the contents of the list
count counts the contents of the list
append [value] appends a value to the list
prepend [value] prepends a value to the list
insert [index] [value] inserts a value into the list at a specified index
del_first deletes the first value of the list
del_last deletes the last value of the list
del_idx [index] deletes a value at a specified index
exit Ends the current session
quit Ends the current session
```

## License
Expand Down
259 changes: 0 additions & 259 deletions linkBase.c

This file was deleted.

Loading

0 comments on commit 229d15b

Please sign in to comment.